svn/gajim/src $ cat e.py from common import i18n from common import dataforms x = dataforms.SimpleDataForm('submit') d = dataforms.Field('text-single',var='FORM_TYPE', value='http://jabber.org/protocol/muc#request') x.fields.append(d) #print x.fields #print d #print x class A: @dataforms.nested_property def type(): '''Type of field. Recognized values are: 'boolean', 'fixed', 'hidden', 'jid-multi', 'jid-single', 'list-multi', 'list-single', 'text-multi', 'text-private', 'text-single'. If you set this to something different, DataField will store given name, but treat all data as text-single.''' def fget(self): print "get" def fset(self, value): print "set" return locals() a=A() print a.type a.type=[] svn/gajim/src $ python e.py get None