Changeset 576


Ignore:
Timestamp:
Jun 2, 2008, 11:45:44 PM (16 years ago)
Author:
ecprice
Message:

Fix a couple more bugs

Location:
trunk/packages/sipb-xen-www/code
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/code/main.py

    r573 r576  
    161161        err = None
    162162    state.clear() #Changed global state
    163     d = getListDict(username)
     163    d = getListDict(username, state)
    164164    d['err'] = err
    165165    if err:
     
    336336    if back == 'list':
    337337        state.clear() #Changed global state
    338         d = getListDict(username)
     338        d = getListDict(username, state)
    339339        d['result'] = result
    340340        return templates.list(searchList=[d])
  • trunk/packages/sipb-xen-www/code/validation.py

    r575 r576  
    242242
    243243def testContact(user, contact, machine=None):
    244     if contact in (None, machine.contact):
     244    if contact is None or (machine is not None and contact == machine.contact):
    245245        return None
    246246    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.