-----BEGIN PGP SIGNED MESSAGE-----
I just checked in a preliminary pass at viewifying the
'full_metadata_form' (now 'metadata.html' as a view):
A couple of things to note:
- I adopted a "don't generalize too soon" approach on this,
rather than trying to come up with a perfect reuse example.
I have two views registered, 'metadata.html' for the template
and 'metadata.py' for the controller to which it POSTs (since
it needs to do redirects). This is a sort of "hybrid" strategy.
- Performance on the view version is nearly twice the "classic"
version (14.2 ms vs 24.2 ms on my box).
- The view code *does* have tests, although they aren't exhaustive.
- Making Document objects five:traversable broke some other unit
tests, so I left that commented out in CMFDefault/configure.zcml.
To actually exercise the view TTW, you will need to uncomment it.
I need to review Yuppie's branch for folder_contents as well:
Feedback on both branches would be appreciated; we have folks gathering
here in FXBG to hammer out the remaining viewification plan for CMF 2.0
Tres Seaver +1 202-558-7113 [EMAIL PROTECTED]
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Zope-CMF maillist - Zope-CMF@lists.zope.org
See http://collector.zope.org/CMF for bug reports and feature requests