[CMF-checkins] CVS: CMF - RegistrationTool.py:1.5
Jens Vagelpohl
jens@digicool.com
Thu, 12 Jul 2001 11:52:54 -0400 (EDT)
Update of /cvs-repository/CMF/CMFCore
In directory korak.digicool.com:/tmp/cvs-serv717/CMFCore
Modified Files:
RegistrationTool.py
Log Message:
Added small test to see if properties are None before calling the validation method. Tracker
issue 335.
--- Updated File RegistrationTool.py in package CMF --
--- RegistrationTool.py 2001/05/11 03:38:28 1.4
+++ RegistrationTool.py 2001/07/12 15:52:53 1.5
@@ -174,9 +174,11 @@
if failMessage is not None:
raise 'Bad Request', failMessage
- failMessage = self.testPropertiesValidity(properties)
- if failMessage is not None:
- raise 'Bad Request', failMessage
+ if properties is not None:
+ failMessage = self.testPropertiesValidity(properties)
+
+ if failMessage is not None:
+ raise 'Bad Request', failMessage
# Limit the granted roles.
# Anyone is always allowed to grant the 'Member' role.