[Zope3-checkins] SVN: zope.formlib/branches/faassen-zaf/s Lose the dependency on zope.cachedescriptors.
Martijn Faassen
faassen at startifact.com
Sat Jan 2 14:10:03 EST 2010
Log message for revision 107572:
Lose the dependency on zope.cachedescriptors.
Changed:
U zope.formlib/branches/faassen-zaf/setup.py
U zope.formlib/branches/faassen-zaf/src/zope/formlib/form.txt
-=-
Modified: zope.formlib/branches/faassen-zaf/setup.py
===================================================================
--- zope.formlib/branches/faassen-zaf/setup.py 2010-01-02 19:09:48 UTC (rev 107571)
+++ zope.formlib/branches/faassen-zaf/setup.py 2010-01-02 19:10:02 UTC (rev 107572)
@@ -47,8 +47,7 @@
package_dir = {'': 'src'},
namespace_packages=['zope',],
extras_require=dict(
- test=['zope.cachedescriptors',
- 'zope.configuration',
+ test=['zope.configuration',
'zope.testing',
]
),
Modified: zope.formlib/branches/faassen-zaf/src/zope/formlib/form.txt
===================================================================
--- zope.formlib/branches/faassen-zaf/src/zope/formlib/form.txt 2010-01-02 19:09:48 UTC (rev 107571)
+++ zope.formlib/branches/faassen-zaf/src/zope/formlib/form.txt 2010-01-02 19:10:02 UTC (rev 107572)
@@ -1590,12 +1590,11 @@
Multiple button groups can be accomplished many ways, but the way we've found
that reuses the most code is the following:
- >>> import zope.cachedescriptors.property
>>> class MyForm(form.Form):
... form_fields = form.Fields(IOrder)
... primary_actions = form.Actions()
... secondary_actions = form.Actions()
- ... @zope.cachedescriptors.property.Lazy
+ ... # can use @zope.cachedescriptors.property.Lazy for performance
... def actions(self):
... return list(self.primary_actions) + list(self.secondary_actions)
... @form.action(u'Edit', primary_actions)
More information about the Zope3-Checkins
mailing list