Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 3
0
    def moveone(self, src, dst, overwrite):
        """ move one resource with Depth=0
        """

        return moveone(self, src, dst, overwrite)
Ejemplo n.º 4
0
 def moveone(self, src, dst, overwrite):
     return moveone(self, src, dst, overwrite)
Ejemplo n.º 5
0
    def moveone(self,src,dst,overwrite):
        """ move one resource with Depth=0
        """

        return moveone(self,src,dst,overwrite)
Ejemplo n.º 6
0
 def moveone(self, src, dst, overwrite):
     return moveone(self, src, dst, overwrite)