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

« back to all changes in this revision

Viewing changes to ivle/fileservice_lib/__init__.py

  • Committer: William Grant
  • Date: 2010-02-23 08:48:09 UTC
  • mfrom: (1673 trunk)
  • mto: This revision was merged to the branch mainline in revision 1674.
  • Revision ID: grantw@unimelb.edu.au-20100223084809-du6dvsxrjhw15ytr
Merge trunk.

Show diffs side-by-side

added added

removed removed

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