[Zope-CMF] Re: Add forms and menus

2008-07-15 Thread Martin Aspeli
Hi Robert, imo its a bad idea to depend on static zcml configuration for factory types. martin did a nice approach in his portlets engine with a name traverser when calling a generic adding view. I'm not quite sure I follow here. The portlets machinery just looks up the add view in a utility t

Re: [Zope-CMF] Re: Add forms and menus

2008-07-15 Thread Charlie Clark
Am 14.07.2008 um 12:37 schrieb yuppie: Add links are just special 'actions', they should be integrated with CMF's action machinery. Based on the information in the type infos we should be able to create normal IActionInfo objects. (IActionInfo defines the non-persistent wrapper around acti

Re: [Zope-CMF] Re: Add forms and menus

2008-07-15 Thread Charlie Clark
Am 14.07.2008 um 12:17 schrieb yuppie: CMF 2.1 was released with some formlib based edit forms. I don't think it was a mistake, because at that time z3c.form wasn't available in the Zope 2 world. It certainly wasn't a mistake in fact I think it was great. To me it seems reasonable at lea

Re: [Zope-CMF] Re: Add forms and menus

2008-07-15 Thread Robert Niederreiter
Hi, Am Dienstag, den 15.07.2008, 08:53 +0100 schrieb Martin Aspeli: > Hi Robert, > > >>> imo its a bad idea to depend on static zcml configuration for factory > >>> types. martin did a nice approach in his portlets engine with a name > >>> traverser when calling a generic adding view. > >> I'm n

[Zope-CMF] Re: Add forms and menus

2008-07-15 Thread yuppie
Robert Niederreiter wrote: i took this idea and the adding mechanism of devilstick works this way as well and depends on the fti too. so a call of foo/add/portal_type returns an add view for requested type. How's that different to foo/+/ ? not that much. i only wanted to say that there might be

Re: [Zope-CMF] Re: Add forms and menus

2008-07-15 Thread Robert Niederreiter
Am Dienstag, den 15.07.2008, 12:43 +0200 schrieb yuppie: > Robert Niederreiter wrote: > > i took this idea and the > > adding mechanism of devilstick works this way as well and depends on the > > fti too. so a call of foo/add/portal_type returns an add view for > > requested type.

[Zope-CMF] CMF Tests: 9 OK

2008-07-15 Thread CMF Tests Summarizer
Summary of messages to the cmf-tests list. Period Mon Jul 14 11:00:00 2008 UTC to Tue Jul 15 11:00:00 2008 UTC. There were 9 messages: 9 from CMF Tests. Tests passed OK --- Subject: OK : CMF-1.6 Zope-2.8 Python-2.3.6 : Linux From: CMF Tests Date: Mon Jul 14 21:42:02 EDT 2008 URL: htt

[Zope-CMF] Re: Add forms and menus

2008-07-15 Thread yuppie
Hi Martin! Martin Aspeli wrote: CMF trunk uses events instead of _finishConstruction. Ah, nice. Do you think it'd be feasible to backport this, i.e. copy the event handler somewhere in Plone so long as Plone's still using an older version of CMF? Or does the new event handler rely on other c

[Zope-CMF] Re: Add forms and menus

2008-07-15 Thread yuppie
Robert Niederreiter wrote: Your proposal has some advantages. On the other hand this requires to create CMF specific code and patterns in a place where a more generic solution also works. it does not if you call a formfactory inside the traverser, so it's hoohable for CMF, Plone or whatever ev

[Zope-CMF] CMFCore.exportimport.properties import encoding

2008-07-15 Thread Ricardo Alves
Hi, I'm having a problem with encoding of properties.xml, and I'm not sure if its an issue of CMFCore or Plone. Maybe it's not even an issue, but here it goes: If the properties.xml file doesn't include any charset declaration, in CMFCore.exportimport.properties, _importNode relies on defau

[Zope-CMF] Re: Add forms and menus

2008-07-15 Thread Daniel Nouri
Robert Niederreiter writes: > Am Dienstag, den 15.07.2008, 12:43 +0200 schrieb yuppie: >> Robert Niederreiter wrote: >> > i took this idea and the >> > adding mechanism of devilstick works this way as well and depends on >> > the >> > fti too. so a call of foo/add/portal_type retu

[Zope-CMF] Re: CMFCore.exportimport.properties import encoding

2008-07-15 Thread yuppie
Hi Ricardo! Ricardo Alves wrote: I'm having a problem with encoding of properties.xml, and I'm not sure if its an issue of CMFCore or Plone. Maybe it's not even an issue, but here it goes: If the properties.xml file doesn't include any charset declaration, in CMFCore.exportimport.properties

[Zope-CMF] Re: Add forms and menus

2008-07-15 Thread Daniel Nouri
Daniel Nouri writes: > Robert Niederreiter writes: >> yuppie writes: >>> I like pretty URLs, and 'foo/+/' looks much prettier than >>> the URLs needed with my approach: >>> >>>foo/?form.portal_type= >>> >>> Your proposal has some advantages. On the other hand this requires to >>> create

[Zope-CMF] Re: Add forms and menus

2008-07-15 Thread Martin Aspeli
yuppie wrote: Robert Niederreiter wrote: Your proposal has some advantages. On the other hand this requires to create CMF specific code and patterns in a place where a more generic solution also works. it does not if you call a formfactory inside the traverser, so it's hoohable for CMF, Plone

[Zope-CMF] Re: Add forms and menus

2008-07-15 Thread Martin Aspeli
Daniel Nouri wrote: Daniel Nouri writes: Robert Niederreiter writes: yuppie writes: I like pretty URLs, and 'foo/+/' looks much prettier than the URLs needed with my approach: foo/?form.portal_type= Your proposal has some advantages. On the other hand this requires to create CMF sp

[Zope-CMF] Re: Add forms and menus

2008-07-15 Thread Martin Aspeli
Charlie Clark wrote: Am 14.07.2008 um 12:37 schrieb yuppie: Add links are just special 'actions', they should be integrated with CMF's action machinery. Based on the information in the type infos we should be able to create normal IActionInfo objects. (IActionInfo defines the non-persisten

Re: [Zope-CMF] Re: CMFCore.exportimport.properties import encoding

2008-07-15 Thread Ricardo Alves
yuppie wrote: Hi Ricardo! Ricardo Alves wrote: I'm having a problem with encoding of properties.xml, and I'm not sure if its an issue of CMFCore or Plone. Maybe it's not even an issue, but here it goes: If the properties.xml file doesn't include any charset declaration, in CMFCore.exportim

Re: [Zope-CMF] Re: Add forms and menus

2008-07-15 Thread Charlie Clark
Am 15.07.2008 um 23:38 schrieb Martin Aspeli: Actually, that's interesting... what purpose does 'initial view' serve in a world with add forms? The same as it ever has - you redirect to the "initial view" from the add form because the add form is actually registered for the container (IF