names starting with ' (at) ' are not reserved
- From: Dieter Maurer <dieter (at) handshake.de>
- Date: Mon, 13 Mar 2006 19:43:17 +0100
Chris McDonough wrote at 2006-3-13 10:21 -0500:
> ... silly id restrictions ...
>Here's my current monkeypatch to Zope to unrestrict a good number of
>characters:
>
>def patch_objectmanager_badid():
> """ Causes Zope to be less restrictive in the set of characters it
> accepts as valid within object identifiers.
>
> Added as acceptable: []*'!: (at) &#=+$
> """
>
> import re
> acceptable = r'[^a-zA-Z0-9-_~,.$\(\)\[\]\*\'\!\:\ (at) \&\#\=\+\$ ]'
> bad_id = re.compile(acceptable).search
> import OFS.ObjectManager
> OFS.ObjectManager.bad_id = bad_id
>
>The projects that use this patch have been in use for several years;
>they predate Five. I of course don't mind continuing to do this, but
>I'd hate to have to change it temporarily (to fix this bug which
>actually isn't a bug for me because I don't use Five for these
>projects) and then change it again when we do the pluggable thing.
+1
Looks as if we had very similar project requirements...
--
Dieter
_______________________________________________
Zope-Dev maillist - Zope-Dev (at) zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )