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

Tres Seaver tseaver at palladion.com
Mon Mar 20 12:26:46 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

yuppie wrote:
> Hi!
> 
> 
> 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?


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEHuXW+gerLs4ltQ4RAsNPAJ40VgmJSjLDcgiNAG/hZnjB8KMdwwCfaO+q
CK/X+OZxhhWu41PRkz9yd30=
=Epr7
-----END PGP SIGNATURE-----



More information about the Zope-CMF mailing list