[storm] python properties and storm properties...
Jason R Briggs
jason at briggs.net.nz
Sun Mar 23 18:44:18 GMT 2008
Hi All
This might be a bit of a dumb question, but I have to admit I'm
struggling to find the right answer.
Is there a way to use a Storm property in a similar way to a python
property? For example, in a normal class I can define a setter and
getter and then a property which uses those methods:
def set_password(self, password):
self._password = encrypt_password(self.username, password)
def get_password(self):
return self._password
password = property(get_password, set_password)
Can I do something similar with a storm property?
Thanks,
Jason
More information about the storm
mailing list