You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Very basic method to fire up a daemon that hosts a bunch of objects.
256
256
The objects will be registered automatically in the name server if you specify this.
@@ -266,20 +266,20 @@ You can perform some limited customization:
266
266
:param daemon: optional existing daemon to use, that you created yourself.
267
267
If you don't specify this, the method will create a new daemon object by itself.
268
268
:type daemon: Pyro5.server.Daemon
269
-
:param ns: optional, if True (the default), the objects will also be registered in the name server (located using :py:meth:`Pyro5.core.locate_ns`) for you.
269
+
:param use_ns: optional, if True (the default), the objects will also be registered in the name server (located using :py:meth:`Pyro5.core.locate_ns`) for you.
270
270
If this parameters is False, your objects will only be hosted in the daemon and are not published in a name server.
271
271
Read below about the exact behavior of the object names you provide in the ``objects`` dictionary.
272
272
:type ns: bool
273
273
:param verbose: optional, if True (the default), print out a bit of info on the objects that are registered
274
274
:type verbose: bool
275
275
:returns: nothing, it starts the daemon request loop and doesn't return until that stops.
276
276
277
-
If you set ``ns=True`` your objects will appear in the name server as well (this is the default setting).
277
+
If you set ``use_ns=True`` (the default) your objects will appear in the name server as well.
278
278
Usually this means you provide a logical name for every object in the ``objects`` dictionary.
279
279
If you don't (= set it to ``None``), the object will still be available in the daemon (by a generated name) but will *not* be registered
280
280
in the name server (this is a bit strange, but hey, maybe you don't want all the objects to be visible in the name server).
281
281
282
-
When not using a name server at all (``ns=False``), the names you provide are used as the object names
282
+
When not using a name server at all (``use_ns=False``), the names you provide are used as the object names
283
283
in the daemon itself. If you set the name to ``None`` in this case, your object will get an automatically generated internal name,
0 commit comments