Changeset 576 for trunk/packages/sipb-xen-www
- Timestamp:
- Jun 2, 2008, 11:45:44 PM (16 years ago)
- Location:
- trunk/packages/sipb-xen-www/code
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/main.py
r573 r576 161 161 err = None 162 162 state.clear() #Changed global state 163 d = getListDict(username )163 d = getListDict(username, state) 164 164 d['err'] = err 165 165 if err: … … 336 336 if back == 'list': 337 337 state.clear() #Changed global state 338 d = getListDict(username )338 d = getListDict(username, state) 339 339 d['result'] = result 340 340 return templates.list(searchList=[d]) -
trunk/packages/sipb-xen-www/code/validation.py
r575 r576 242 242 243 243 def testContact(user, contact, machine=None): 244 if contact i n (None,machine.contact):244 if contact is None or (machine is not None and contact == machine.contact): 245 245 return None 246 246 if not re.match("^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$", contact, re.I):
Note: See TracChangeset
for help on using the changeset viewer.