Пример #1
0
    def moveone(self, src, dst, overwrite):
        """ move one resource with Depth=0

        an alternative implementation would be

        result_code=201
        if overwrite:
            result_code=204
            r=os.system("rm -f '%s'" %dst)
            if r: return 412
        r=os.system("mv '%s' '%s'" %(src,dst))
        if r: return 412
        return result_code

        (untested!). This would not use the davcmd functions
        and thus can only detect errors directly on the root node.
        """
        res = moveone(self, src, dst, overwrite)
        return res
Пример #2
0
    def moveone(self, src, dst, overwrite):
        """ move one resource with Depth=0

        an alternative implementation would be

        result_code=201
        if overwrite:
            result_code=204
            r=os.system("rm -f '%s'" %dst)
            if r: return 412
        r=os.system("mv '%s' '%s'" %(src,dst))
        if r: return 412
        return result_code

        (untested!). This would not use the davcmd functions
        and thus can only detect errors directly on the root node.
        """
        res=moveone(self, src, dst, overwrite)
        return res
Пример #3
0
    def moveone(self, src, dst, overwrite):
        """ move one resource with Depth=0
        """

        return moveone(self, src, dst, overwrite)
Пример #4
0
 def moveone(self, src, dst, overwrite):
     return moveone(self, src, dst, overwrite)
Пример #5
0
    def moveone(self,src,dst,overwrite):
        """ move one resource with Depth=0
        """

        return moveone(self,src,dst,overwrite)
Пример #6
0
 def moveone(self, src, dst, overwrite):
     return moveone(self, src, dst, overwrite)