~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/fileservice_lib/__init__.py

  • Committer: David Coles
  • Date: 2010-02-18 05:39:31 UTC
  • Revision ID: coles.david@gmail.com-20100218053931-9m3hdk24tdaawf4p
Set local inside handle function to prevent it breaking testcases when development enviroment is not en_US

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
mime_dirlisting = "text/html"
93
93
#mime_dirlisting = "application/json"
94
94
 
95
 
# Set locale to UTF-8 (required by PySVN)
96
 
locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8")
97
95
 
98
96
def handle(req):
99
97
    """Handler for the File Services application."""
100
98
 
 
99
    # Set locale to UTF-8 (required by PySVN)
 
100
    locale.setlocale(locale.LC_CTYPE, "en_US.UTF-8")
 
101
 
101
102
    # We really, really don't want the responses to be cached.
102
103
    req.headers_out['Cache-Control'] = 'no-store, no-cache, must-revalidate'
103
104