On Thursday 09 March 2006 06:09, Marko Mikulicic wrote:
> class Foo(Persistent):
> implements(IFooB)
>
> def setBar(self, bar):
> ....
>
> def getBar(self):
> ....
>
> bar = property(getBar, setBar)
The disadvantage here, of course, is that the {g,s}etBar methods hang around
in the class for no reason. Benji's example avoided this.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
_______________________________________________
Zope3-dev mailing list
[email protected]
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com