~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-02-13 05:38:50 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:445
fileservice: Repair a couple of error messages suffering from cutandpastitis.

interpret.py: banish another /etc/passwd dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
517
517
        for path in paths:
518
518
            # Note: Property value doesn't matter
519
519
            svnclient.propset("ivle:published", "", path, recurse=False)
520
 
    except pysvn.ClientError:
521
 
        raise ActionError("One or more files could not be updated")
 
520
    except pysvn.ClientError, e:
 
521
        raise ActionError("Directory could not be published")
522
522
 
523
523
def action_svnunpublish(req, fields):
524
524
    """Deletes svn property "ivle:published" on each file specified.
532
532
        for path in paths:
533
533
            svnclient.propdel("ivle:published", path, recurse=False)
534
534
    except pysvn.ClientError:
535
 
        raise ActionError("One or more files could not be updated")
 
535
        raise ActionError("Directory could not be unpublished)
536
536
 
537
537
def action_svncommit(req, fields):
538
538
    """Performs a "svn commit" to each file specified.