[Zope3-dev] Re: keeping attributes abstract
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Mar 9 07:12:27 EST 2006
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
More information about the Zope3-dev
mailing list