[Zope-Checkins] CVS: Zope/lib/python/OFS - ObjectManager.py:1.143

Andreas Jung andreas@zope.com
Fri, 26 Oct 2001 11:11:59 -0400


Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv22719/lib/python/OFS

Modified Files:
	ObjectManager.py 
Log Message:

      - WebDAV: '(' and ')' are now allowed in Ids for Zope objects.
        This is needed when one tries to duplicate files using cut&paste
        through Microsoft webfolders.


=== Zope/lib/python/OFS/ObjectManager.py 1.142 => 1.143 ===
     }
 
-bad_id=re.compile(r'[^a-zA-Z0-9-_~,.$# ]').search #TS
+bad_id=re.compile(r'[^a-zA-Z0-9-_~,.$\(\)# ]').search #TS
 
 # Global constants: __replaceable__ flags:
 NOT_REPLACEABLE = 0
@@ -124,6 +124,7 @@
     # only check that the id string contains no illegal chars;
     # check_valid_id() will be called again later with allow_dup
     # set to false before the object is added.
+
     if not id or (type(id) != type('')):
         raise BadRequestException, 'Empty or invalid id specified.'
     if bad_id(id) is not None: