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

« back to all changes in this revision

Viewing changes to ivle/fileservice_lib/action.py

  • Committer: William Grant
  • Date: 2010-02-23 08:48:09 UTC
  • mfrom: (1673 trunk)
  • mto: This revision was merged to the branch mainline in revision 1674.
  • Revision ID: grantw@unimelb.edu.au-20100223084809-du6dvsxrjhw15ytr
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
317
317
    """
318
318
    frompath = fields.getfirst('from')
319
319
    topath = fields.getfirst('to')
320
 
    svn = fields.getfirst('svn')
321
 
    if svn:
322
 
        svn_movefile(req, frompath, topath)
323
 
    else:
324
 
        movefile(req, frompath, topath)
 
320
    movefile(req, frompath, topath)
325
321
 
326
322
def action_mkdir(req, fields):
327
323
    """Creates a directory with the given path.
722
718
    except pysvn.ClientError, e:
723
719
        # Error code 170000 means ENOENT in this revision.
724
720
        if e[1][0][1] == 170000:
725
 
            req.status = 404
726
 
            raise ActionError('The specified repository path does not exist')
 
721
            raise util.IVLEError(404, 'The specified repository path does not exist')
727
722
        else:
728
723
            raise ActionError(str(e[0]))
729
724