a guest Nov 29th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- class Party:
- __metaclass__ = PoolMeta
- __name__ = 'party.party'
- website = fields.Function(
- fields.Char('Website'), 'get_mechanism', setter='set_mechanism')
- def __setup__(cls):
- super(Party, cls).__setup__()
- setter = 'set_mechanism'
- cls.phone.setter = setter # doesn't work
- del cls.website # works
- def set_mechanism(cls, parties, name, value):
RAW Paste Data