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

« back to all changes in this revision

Viewing changes to ivle/fileservice_lib/action.py

  • Committer: Matt Giuca
  • Date: 2010-02-23 04:38:33 UTC
  • Revision ID: matt.giuca@gmail.com-20100223043833-f73naxuzoz6ux7rm
browser.js: Fixed generation of links in file browser to Serve, Download and Share-this-file links containing special URI characters. Now properly URL-encoded. Added util.js app_url and public_app_url, replacing calls to app_path and public_app_path. Fixes Launchpad bug #524176.

Show diffs side-by-side

added added

removed removed

Lines of Context:
653
653
    Reads fields: 'path' (multiple), 'logmsg' (optional)
654
654
    """
655
655
    paths = fields.getlist('path')
656
 
    if len(paths):
657
 
        paths = map(lambda path:actionpath_to_local(req,path).decode('utf-8'),
658
 
                    paths)
659
 
    else:
660
 
        paths = [studpath.to_home_path(req.path).decode('utf-8')]
 
656
    paths = map(lambda path: actionpath_to_local(req, path).decode('utf-8'),
 
657
                paths)
661
658
    logmsg = str(fields.getfirst('logmsg',
662
659
                 DEFAULT_LOGMESSAGE)).decode('utf-8')
663
660
    if logmsg == '': logmsg = DEFAULT_LOGMESSAGE