Fixed a minor typo in docstring for ObjectDB.__db_get: To view all Attributes one uses obj.db.all, not obj.db.all().
This commit is contained in:
parent
44bf35cd81
commit
7dcfdc4d4b
1 changed files with 2 additions and 3 deletions
|
|
@ -1458,7 +1458,7 @@ class TypedObject(SharedMemoryModel):
|
||||||
and
|
and
|
||||||
del obj.db.attrname
|
del obj.db.attrname
|
||||||
and
|
and
|
||||||
all_attr = obj.db.all() (if there is no attribute named 'all', in which
|
all_attr = obj.db.all (unless there is no attribute named 'all', in which
|
||||||
case that will be returned instead).
|
case that will be returned instead).
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
|
|
@ -1470,8 +1470,7 @@ class TypedObject(SharedMemoryModel):
|
||||||
_SA(self, 'obj', obj)
|
_SA(self, 'obj', obj)
|
||||||
def __getattribute__(self, attrname):
|
def __getattribute__(self, attrname):
|
||||||
if attrname == 'all':
|
if attrname == 'all':
|
||||||
# we allow for overwriting the all() method
|
# we allow to overload our default .all
|
||||||
# with an attribute named 'all'.
|
|
||||||
attr = _GA(self, 'obj').get_attribute("all")
|
attr = _GA(self, 'obj').get_attribute("all")
|
||||||
if attr:
|
if attr:
|
||||||
return attr
|
return attr
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue