[Zope-CMF] Re: Portal users and some other stuff
Hi Charlie! Charlie Clark wrote: Am 12.01.2007 um 14:35 schrieb Jens Vagelpohl: 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 There you go, even better ;) Indeed, nice to see all those horrible decorators have gone! Now that my content-type is sort of working I can afford to give this a go. Does this have dependencies on the current svn trunk or will it work with CMF 2.0? This will not work with CMF 2.0. It depends on CMFDefault.formlib and other code that exists only on the trunk. I use the trunk in production and it looks quite stable. If you are not afraid of possible API changes (the trunk is still alpha, so new APIs are not frozen yet), using the trunk might not be a bad choice. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] Re: Portal users and some other stuff
Am 12.01.2007 um 14:35 schrieb Jens Vagelpohl: 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 There you go, even better ;) Indeed, nice to see all those horrible decorators have gone! Now that my content-type is sort of working I can afford to give this a go. Does this have dependencies on the current svn trunk or will it work with CMF 2.0? Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-938-5360 GSM: +49-178-782-6226 ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] Re: Portal users and some other stuff
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12 Jan 2007, at 14:19, yuppie wrote: 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 There you go, even better ;) jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFp46nRAx5nvEhZLIRAuM2AJ9bpROKiY19HNKRFrnso8/k1YPn+wCfbjY+ daTxlXNlZQyTZPtfvwjWMpY= =hAKJ -END PGP SIGNATURE- ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Re: Portal users and some other stuff
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 ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests