make attributes editable via XML-RPC

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1650 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2007-03-17 21:01:46 +00:00
parent 4586801c9e
commit 1b83483e3f

View file

@ -149,7 +149,7 @@ def objectAsDict(obj):
adapter = ti(obj)
for attr in (list(adapter._adapterAttributes) + list(ti)):
if attr not in ('__parent__', 'context', 'id', 'name',
'title', 'description', 'type'):
'title', 'description', 'type', 'data'):
value = getattr(adapter, attr)
# TODO: better selection and conversion
if value is None or type(value) in (str, unicode):