Signed-off-by: Torsten Werner <twerner@debian.org>
class ORMObject(object):
"""
ORMObject is a base class for all ORM classes mapped by SQLalchemy. All
- derived classes must implement the summary() method.
+ derived classes must implement the properties() method.
"""
def properties(self):
value = repr(value)
else:
# we want a string for all other types because json cannot
- # everything
+ # encode everything
value = str(value)
data[property] = value
return json.dumps(data)