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

« back to all changes in this revision

Viewing changes to www/apps/fileservice/__init__.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:
83
83
 
84
84
import action, listing
85
85
 
86
 
# Make a Subversion client object
87
 
svnclient = pysvn.Client()
88
 
 
89
86
# Mime types
90
87
# application/json is the "best" content type but is not good for
91
88
# debugging because Firefox just tries to download it
109
106
 
110
107
    if act is not None:
111
108
        try:
112
 
            action.handle_action(req, svnclient, act, fields)
 
109
            action.handle_action(req, act, fields)
113
110
        except action.ActionError, message:
114
111
            req.headers_out['X-IVLE-Action-Error'] = str(message)
115
112
 
116
 
    listing.handle_return(req, svnclient)
 
113
    listing.handle_return(req)