According to docs and testing (in the interpreter) I can make a read-only calculated attribute using property() (I know that setters do not work w/ non-new-style classes). So I tried the following:

class CMixin:
def getter(self):
return 'test'
prop = property(getter)

and when I try to mix in this object w/ a Folder object, the instance returns <property object at 0x8b45edc> for the 'prop' attribute. Is this an issue with pickling or something else?

Tim McLaughlin
Chief Technology Officer
Siteworx, Inc... Set your site on the future!

Attachment: msg12579/pgp00000.pgp
Description: PGP signature

Reply via email to