Part of bzrlib.controldir View In Hierarchy
Differs from ControlDirFormat._formats in that it provides sub-formats, e.g. BzrDirMeta1 with weave repository. Also, it's more user-oriented.
Method | __init__ | Create a ControlDirFormatRegistry. |
Method | aliases | Return a set of the format names which are aliases. |
Method | register | Register a ControlDirFormat factory. |
Method | register_lazy | Register a new object to be loaded on request. |
Method | set_default | Set the 'default' key to be a clone of the supplied key. |
Method | set_default_repository | Set the FormatRegistry default and Repository default. |
Method | make_bzrdir | Undocumented |
Method | help_topic | Undocumented |
Inherited from Registry:
Method | get | Return the object register()'ed to the given key. |
Method | get_prefix | Return an object whose key is a prefix of the supplied value. |
Method | get_help | Get the help text associated with the given key |
Method | get_info | Get the extra information associated with the given key |
Method | remove | Remove a registered entry. |
Method | __contains__ | Undocumented |
Method | keys | Get a list of registered entries |
Method | iteritems | Undocumented |
Method | items | Undocumented |
Method | _add_help_and_info | Add the help and information about this key |
Method | _get_module | Return the module the object will be or was loaded from. |
Method | _get_key_or_default | Return either 'key' or the default key if key is None |
Method | _set_default_key | Undocumented |
Method | _get_default_key | Undocumented |
The factory must be a callable that takes one parameter: the key. It must produce an instance of the ControlDirFormat when called.
This function mainly exists to prevent the info object from being supplied directly.
Parameters | key | This is the key to use to request the object later. |
module_name | The python path to the module. Such as 'os.path'. | |
member_name | The member of the module to return. If empty or None, get() will return the module itself. | |
help | Help text for this entry. This may be a string or a callable. | |
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). | |
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 |
This method must be called once and only once.