Changeset 578


Ignore:
Timestamp:
Jun 2, 2008, 11:59:50 PM (17 years ago)
Author:
ecprice
Message:

Avoid per-request global state.

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

Legend:

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

    r577 r578  
    4242import validation
    4343import cache_acls
    44 from webcommon import InvalidInput, CodeError, state
     44from webcommon import InvalidInput, CodeError, State
    4545import controls
    4646
     
    668668
    669669    username = getUser(os.environ)
    670     state.username = username
     670    state = State(username)
    671671    operation = os.environ.get('PATH_INFO', '')
    672672    if not operation:
  • trunk/packages/sipb-xen-www/code/webcommon.py

    r572 r578  
    5555            if attr.startswith('__cache_'):
    5656                delattr(self, attr)
    57 
    58 state = State(None)
Note: See TracChangeset for help on using the changeset viewer.