[CMF-checkins] CVS: CMF/CMFCore - RegistrationTool.py:1.10
Andrew Sawyers
andrew@zope.com
Mon, 21 Jan 2002 15:24:49 -0500
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv31067
Modified Files:
RegistrationTool.py
Log Message:
*Merging fix from CMF-1_2-branch for Tracker #456 bug fix.
=== CMF/CMFCore/RegistrationTool.py 1.9 => 1.10 ===
import re
- __ALLOWED_MEMBER_ID_PATTERN = re.compile( "[A-Za-z][A-Za-z0-9_]*" )
+ __ALLOWED_MEMBER_ID_PATTERN = re.compile( "^[A-Za-z][A-Za-z0-9_]*$" )
security.declareProtected(AddPortalMember, 'isMemberIdAllowed')
def isMemberIdAllowed(self, id):
'''Returns 1 if the ID is not in use and is not reserved.