Back to index

plone3  3.1.7
Classes | Functions | Variables
CMFPlone.RegistrationTool Namespace Reference

Classes

class  RegistrationTool

Functions

def getValidPasswordChars
def _checkEmail

Variables

list invalid_password_chars = ['a','e','i','o','u','y','l','q']
tuple password_chars = getValidPasswordChars()
tuple _TESTS

Function Documentation

def CMFPlone.RegistrationTool._checkEmail (   address) [private]

Definition at line 340 of file RegistrationTool.py.

00340 
00341 def _checkEmail( address ):
00342     for pattern, expected, message in _TESTS:
00343         matched = pattern.search( address ) is not None
00344         if matched != expected:
00345             return False, message
00346     return True, ''
00347 

Here is the caller graph for this function:

Definition at line 31 of file RegistrationTool.py.

00031 
00032 def getValidPasswordChars():
00033     password_chars = []
00034     for i in range(0, 26):
00035         if chr(ord('a')+i) not in invalid_password_chars:
00036             password_chars.append(chr(ord('a')+i))
00037             password_chars.append(chr(ord('A')+i))
00038     for i in range(2, 10):
00039         password_chars.append(chr(ord('0')+i))
00040     return password_chars


Variable Documentation

Initial value:
00001 ( ( re.compile("^[0-9a-zA-Z\.\-\_\+\']+\@[0-9a-zA-Z\.\-]+$")
00002            , True
00003            , "Failed a"
00004            )
00005          , ( re.compile("^[^0-9a-zA-Z]|[^0-9a-zA-Z]$")
00006            , False
00007            , "Failed b"
00008            )
00009          , ( re.compile("([0-9a-zA-Z_]{1})\@.")
00010            , True
00011            , "Failed c"
00012            )
00013          , ( re.compile(".\@([0-9a-zA-Z]{1})")
00014            , True
00015            , "Failed d"
00016            )
00017          , ( re.compile(".\.\-.|.\-\..|.\.\..|.\-\-.")
00018            , False
00019            , "Failed e"
00020            )
00021          , ( re.compile(".\.\_.|.\-\_.|.\_\..|.\_\-.|.\_\_.")
00022            , False
00023            , "Failed f"
00024            )
00025          , ( re.compile(".\.([a-zA-Z]{2,3})$|.\.([a-zA-Z]{2,4})$")
00026            , True
00027            , "Failed g"
00028            )
00029          )

Definition at line 310 of file RegistrationTool.py.

list CMFPlone.RegistrationTool.invalid_password_chars = ['a','e','i','o','u','y','l','q']

Definition at line 29 of file RegistrationTool.py.

Definition at line 41 of file RegistrationTool.py.