diff --git a/themis/datatypes/address.py b/themis/datatypes/address.py index db04999..7ce2cf1 100644 --- a/themis/datatypes/address.py +++ b/themis/datatypes/address.py @@ -34,6 +34,18 @@ class Address(Field): fax = None email = None + def as_dict(self): + return { + 'title': self.title, + 'street': self.street, + 'zipcode': self.zipcode, + 'city': self.city, + 'phone1': self.phone1, + 'phone2': self.phone2, + 'fax': self.fax, + 'email': self.email, + } + class IAddressWidget(IWidget): pass diff --git a/themis/datatypes/configure.zcml b/themis/datatypes/configure.zcml index 17a2a78..072f276 100644 --- a/themis/datatypes/configure.zcml +++ b/themis/datatypes/configure.zcml @@ -12,6 +12,14 @@ + + +