[CMF-checkins] CVS: CMF/CMFCore - RegistrationTool.py:1.7.2.2
Andrew Sawyers
andrew@zope.com
Mon, 21 Jan 2002 15:23:20 -0500
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv30461/CMFCore
Modified Files:
Tag: CMF-1_2-branch
RegistrationTool.py
Log Message:
*Fixed regular expression bug in _ALLOWED_MEMBER_ID_PATTERN
*Tracker #456
=== CMF/CMFCore/RegistrationTool.py 1.7.2.1 => 1.7.2.2 ===
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.