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

« back to all changes in this revision

Viewing changes to www/apps/fileservice/listing.py

  • Committer: mattgiuca
  • Date: 2008-01-10 07:25:38 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:166
fileservice:
    * Moved the svnclient object out to the sub-modules (each has their own).
        Makes it easier for them to be global.
    * Added new discussion about how putfile action should change (zip uploads
        and multiple file uploads).
    * Added action svnadd.

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
from common import (util, studpath)
105
105
import conf.mimetypes
106
106
 
 
107
# Make a Subversion client object
 
108
svnclient = pysvn.Client()
 
109
 
107
110
# Mime types
108
111
# application/json is the "best" content type but is not good for
109
112
# debugging because Firefox just tries to download it
110
113
mime_dirlisting = "text/html"
111
114
#mime_dirlisting = "application/json"
112
115
 
113
 
def handle_return(req, svnclient):
 
116
def handle_return(req):
114
117
    """Perform the "return" part of the response.
115
118
    This function returns the file or directory listing contained in
116
119
    req.path. Sets the HTTP response code in req, writes additional headers,