Added auto-conversion of typeclass to dbobj in ObjectDB.contents_get()
This commit is contained in:
parent
0efc371775
commit
348ff0b5f4
1 changed files with 1 additions and 0 deletions
|
|
@ -325,6 +325,7 @@ class ObjectDB(TypedObject):
|
||||||
exclude is one or more objects to not return
|
exclude is one or more objects to not return
|
||||||
"""
|
"""
|
||||||
if exclude:
|
if exclude:
|
||||||
|
exclude = [obj.dbobj for obj in make_iter(exclude)]
|
||||||
return ObjectDB.objects.get_contents(self, excludeobj=exclude)
|
return ObjectDB.objects.get_contents(self, excludeobj=exclude)
|
||||||
return ObjectDB.objects.get_contents(self)
|
return ObjectDB.objects.get_contents(self)
|
||||||
contents = property(contents_get)
|
contents = property(contents_get)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue