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

« back to all changes in this revision

Viewing changes to lib/fileservice_lib/action.py

  • Committer: drtomc
  • Date: 2008-03-03 09:02:49 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:633
publishing: Make publishing the current directory work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
542
542
    Reads fields: 'path'
543
543
    """
544
544
    paths = fields.getlist('path')
545
 
    paths = map(lambda path: actionpath_to_local(req, path), paths)
 
545
    if len(paths):
 
546
        paths = map(lambda path: actionpath_to_local(req, path), paths)
 
547
    else:
 
548
        paths = [studpath.url_to_jailpaths(req.path)[2]]
546
549
 
547
550
    try:
548
551
        for path in paths: