Rev 5854: Fix Registry.register_lazy docstring. in http://bazaar.launchpad.net/~vila/bzr/integration/

Vincent Ladeuil v.ladeuil+lp at free.fr
Thu May 12 16:32:48 UTC 2011


At http://bazaar.launchpad.net/~vila/bzr/integration/

------------------------------------------------------------
revno: 5854
revision-id: v.ladeuil+lp at free.fr-20110512163248-q6ri4baji6bv6k0c
parent: pqm at pqm.ubuntu.com-20110512085136-3m1rldvvryvqnsy3
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: trunk
timestamp: Thu 2011-05-12 18:32:48 +0200
message:
  Fix Registry.register_lazy docstring.
-------------- next part --------------
=== modified file 'bzrlib/registry.py'
--- a/bzrlib/registry.py	2011-03-10 13:52:27 +0000
+++ b/bzrlib/registry.py	2011-05-12 16:32:48 +0000
@@ -132,12 +132,15 @@
                       override_existing=False):
         """Register a new object to be loaded on request.
 
+        :param key: This is the key to use to request the object later.
         :param module_name: The python path to the module. Such as 'os.path'.
         :param member_name: The member of the module to return.  If empty or
                 None, get() will return the module itself.
         :param help: Help text for this entry. This may be a string or
                 a callable.
-        :param info: More information for this entry. Registry
+        :param info: More information for this entry. Registry.get_info()
+                can be used to get this information. Registry treats this as an
+                opaque storage location (it is defined by the caller).
         :param override_existing: If True, replace the existing object
                 with the new one. If False, if there is already something
                 registered with the same key, raise a KeyError



More information about the bazaar-commits mailing list