[Zope3-Users] mapSchemasToDict
Stephan Richter
srichter at cosmos.phy.tufts.edu
Fri Oct 13 08:51:40 EDT 2006
On Friday 13 October 2006 00:10, ksmith93940-dev at yahoo.com wrote:
> Perhaps this already exists somewhere, but I couldn't find it. Feed this
> function an object and it returns a dictionary of the associated schema
> key/value pairs including those that are PersistentList's of objects. Handy
> for view classes. Pointers and improvements welcome.
This is a bad practice, since it does not convert vocabulary values or formats
datetime objects. It would be better to use formlib and display widgets. This
also gives you also much more control over view-related settings.
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-users
mailing list