[Zope-dev] Re: characters allowed in object IDs

yuppie y.2006_ at wcm-solutions.de
Fri Mar 10 06:51:05 EST 2006


Max M wrote:
> yuppie wrote:
>> As of Zope 2.8.2 (http://svn.zope.org/?rev=38738&view=rev) the '@' 
>> character is allowed in object IDs.
>>
>> Zope 3 does not allow object IDs starting with '@' because those names 
>> are reserved for views.
>>
>> Five makes Zope 3 style views available in Zope 2, so IDs starting 
>> with '@' should be disallowed in Zope 2 as well.
>>
>> If there are no objections I'll fix that in Zope 2.8, 2.9 and trunk.
> 
> [...]
> 
> If you just want to prohibit "id.startswith('@')" it is fine by me.

I didn't propose to revert revision 38738, just want to fix it by adding

     if id[:1] == '@':
         raise BadRequest('The id "%s" is invalid because it begins '
                          'with "@".' % id)

So I count your reply as a +1.

Cheers, Yuppie



More information about the Zope-Dev mailing list