~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/registry.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-04 17:38:09 UTC
  • mfrom: (5805.1.1 no-inventory)
  • Revision ID: pqm@pqm.ubuntu.com-20110504173809-otz0gw0cvf2z9jbk
(jelmer) Avoid using inventories in some repository tests. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
                      override_existing=False):
133
133
        """Register a new object to be loaded on request.
134
134
 
135
 
        :param key: This is the key to use to request the object later.
136
135
        :param module_name: The python path to the module. Such as 'os.path'.
137
136
        :param member_name: The member of the module to return.  If empty or
138
137
                None, get() will return the module itself.
139
138
        :param help: Help text for this entry. This may be a string or
140
139
                a callable.
141
 
        :param info: More information for this entry. Registry.get_info()
142
 
                can be used to get this information. Registry treats this as an
143
 
                opaque storage location (it is defined by the caller).
 
140
        :param info: More information for this entry. Registry
144
141
        :param override_existing: If True, replace the existing object
145
142
                with the new one. If False, if there is already something
146
143
                registered with the same key, raise a KeyError