Rev 5854: (vila) Fix Registry.register_lazy docstring (Vincent Ladeuil) in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Thu May 12 17:24:26 UTC 2011


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 5854 [merge]
revision-id: pqm at pqm.ubuntu.com-20110512172423-gai540q1kccn1k5k
parent: pqm at pqm.ubuntu.com-20110512085136-3m1rldvvryvqnsy3
parent: v.ladeuil+lp at free.fr-20110512163248-q6ri4baji6bv6k0c
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2011-05-12 17:24:23 +0000
message:
  (vila) Fix Registry.register_lazy docstring (Vincent Ladeuil)
modified:
  bzrlib/registry.py             lazy_factory.py-20060809213415-2gfvqadtvdn0phtg-1
=== 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