On 7/10/06, Garito <[EMAIL PROTECTED]> wrote:
__getattr__ some of you (I don't remember how exactly, sorry) have said
is a member to use only if there are no other way and I'm a little
scared for that
I think there's no "official" (as in "provided by the framework") support for
what you want. If you are too scared to implement some proof-of-concept
which involves good testing covering your use case, you should think
about another way to implement what you need.
you could also use __getattribute__(), this way you can also have
"dynamic" methods.
http://docs.python.org/ref/new-style-attribute-access.html
don't know how ZODB copes with this. or whether one needs to worry
about that.
--knitti
_______________________________________________
Zope maillist - Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )