[Zope3-dev] widget question: propertyNames/getValue
Garrett Smith
garrett at mojave-corp.com
Sat Feb 7 19:23:08 EST 2004
I'm trying to make sense of propertyNames in the widget facility. From
what I can see, propertyNames and getValue can be removed from IWidget
(plus appropriate refactoring of existing code) without loosing
functionality.
1 - Nothing in the core uses propertyNames outside the implementation of
getValue.
2 - getattr can be called on a widget directly if you need to get an
attribute by name.
3 - If propertyNames is used for documenting/listing fields supported by
a widget, there are better ways to do this.
-- Garrett
More information about the Zope3-dev
mailing list