[Zope-CMF] Re: [dev] characters allowed in content IDs

yuppie y.2006_ at wcm-solutions.de
Mon Mar 20 13:01:17 EST 2006


Hi Tres!


Tres Seaver wrote:
> 
> yuppie wrote:
>>
>> CMF 2.0 will ship with some browser views. Browser views have their own
>> prefix '@@' to avoid conflicts with content IDs. But Zope 2 doesn't
>> reserve those names for views as Zope 3 does by default. I propose to
>> disallow names starting with '@' as the Zope 3 name chooser does.
>>
>> I still believe this should be fixed in Zope 2, see
>> http://www.zope.org/Collectors/Zope/2048
>>
>> But I gave up my attempt to fix this in the Zope layer because the
>> related discussion on zope-dev ended without a clear result.
>>
>>
>> I hope there are no objections against fixing this in PortalFolder's
>> _checkId method for now. In CMF we plan to use views by default and it's
>> quite common that normal site members are allowed to add content items.
>> So this should be less controversial for the CMF than for Zope 2.
> 
> +1.  Can you implement by doing an adapter lookup, so that sites which
> need a different policy can change it via ZCML?

Well. PortalFolder's _checkId method contains many other policy choices 
*and* depends on OFS.Folder's _checkId method. I guess it would be 
easier to implement an INameChooser adapter if this would be first done 
for OFS.Folder.

I don't volunteer to refactor CMF based on the INameChooser concept (at 
least not for CMF 2.0) and don't think we should invent an other adapter 
for that task.


Cheers,

	Yuppie



More information about the Zope-CMF mailing list