diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2013-02-04 15:08:22 +0100 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2013-02-04 15:08:22 +0100 |
commit | d754d382080e6ad30912618c1650f4948a1f3b9d (patch) | |
tree | 54f05f6ef2f9b9d10dfedfcac189d89e1ad2f27b | |
parent | f3fbd3b38a8624c83e6f13616947c2775f194cac (diff) | |
download | logilab-common-d754d382080e6ad30912618c1650f4948a1f3b9d.tar.gz |
[registry] docstring fixes
-rw-r--r-- | registry.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/registry.py b/registry.py index fec35ad..7686a66 100644 --- a/registry.py +++ b/registry.py @@ -332,7 +332,8 @@ class Registry(dict): """return object with the `oid` identifier. Only one object is expected to be found. - raise :exc:`ObjectNotFound` if not object with id <oid> in <registry> + raise :exc:`ObjectNotFound` if there are no object with id `oid` in this + registry raise :exc:`AssertionError` if there is more than one object there """ @@ -344,9 +345,10 @@ class Registry(dict): """return the most specific object among those with the given oid according to the given context. - raise :exc:`ObjectNotFound` if not object with id <oid> in <registry> + raise :exc:`ObjectNotFound` if there are no object with id `oid` in this + registry - raise :exc:`NoSelectableObject` if not object apply + raise :exc:`NoSelectableObject` if no object can be selected """ obj = self._select_best(self[__oid], *args, **kwargs) if obj is None: |