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

« back to all changes in this revision

Viewing changes to www/apps/server/__init__.py

  • Committer: dcoles
  • Date: 2008-04-04 04:29:45 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:724
public mode: Backend changes to enable public mode. So long as the folder is 
world readable and a '.published' file is in the folder then files can be 
viewed through the public url.

    w/a/s/__init__.py: Bug fix - now uses the owner param of server_file
    l/c/studpath.py: Now uses worldreadable+'.published' file for permission 
    rather than svn properties

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
                "Files of this type are not allowed to be served.")
127
127
 
128
128
        interp_object = interpret.interpreter_objects["cgi-python"]
129
 
        user_jail_dir = os.path.join(conf.jail_base, req.user.login)
130
 
        interpret.interpret_file(req, req.user.login, user_jail_dir,
 
129
        user_jail_dir = os.path.join(conf.jail_base, owner)
 
130
        interpret.interpret_file(req, owner, user_jail_dir,
131
131
            serveservice_path, interp_object)
132
132
 
133
133
def serve_file_direct(req, filename, type):