[Zope-CMF] Re: Portal users and some other stuff

yuppie y.2007- at wcm-solutions.de
Fri Jan 12 08:19:19 EST 2007


Hi Charlie!


Charlie Clark wrote:
> For the necessary forms, at least based on the CMF Event code, it seems 
> to me that code like
> 
> options['title'] = form.get('title', context.Title())
> options['text'] = form.get('text', context.text)
> options['text_format'] = form.get('text_format', context.text_format)
> options['headline'] = form.get('headline', context.headline)
> options['teaser'] = form.get('teaser', context.teaser)
> options['category'] = form.get('category', context.category)
> options['keywords'] = form.get('keywords', context.keywords)
> options['resources'] = form.get('resources', context.resources)
> 
> could be optimised in the context could be treated as a dictionary 
> object, ie. supported get.

Please note that this code is no longer actively maintained. The forms 
currently implemented as skin methods will be replaced by generated 
views using formlib.

Here is the new implementation for event_edit_form and event_view:
http://svn.zope.org/CMF/trunk/CMFCalendar/browser/event.py?rev=71045&view=markup


Cheers,

	Yuppie



More information about the Zope-CMF mailing list