B4BY.588
Home
Terminal
Upload
information
Create File
Create Folder
About
Tools
:
/
lib
/
python2.7
/
site-packages
/
ipapython
/
Filename :
ipavalidate.pyc
back
Copy
� $��^c @ sO d d l Z e d � Z e e d � Z e d � Z e d � Z e d � Z d S( i����Nc C s� t j d t j � } t j d t j � } | s= | d k rT | t k rM t St Sn | j � } | j d d � } y | \ } } Wn t k r� t SX| j | � s� t S| j | � s� t St S( s� Do some basic validation of an e-mail address. Return True if ok Return False if not If notEmpty is True the this will return an error if the field is "" or None. s ^[^ \t\n\r@<>()]+$s ^[a-z0-9][a-z0-9\.\-_]*\.[a-z]+$t @i N( t ret compilet It Nonet Truet Falset stript splitt ValueErrort search( t mailt notEmptyt usernameREt domainREt st usernamet domain( ( s9 /usr/lib/python2.7/site-packages/ipapython/ipavalidate.pyt Email s"