Esempio n. 1
0
    def movetree(self,src,dst,overwrite):
        """ move a collection with Depth=infinity

        an alternative implementation would be

        result_code=201
        if overwrite: 
            result_code=204
            r=os.system("rm -rf '%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"""

        return movetree(self,src,dst,overwrite)
Esempio n. 2
0
    def movetree(self, src, dst, overwrite):
        """ move a collection with Depth=infinity

	    an alternative implementation would be

		result_code=201
		if overwrite: 
		    result_code=204
		    r=os.system("rm -rf '%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"""

        return movetree(self, src, dst, overwrite)
Esempio n. 3
0
    def movetree(self,src,dst,overwrite):
        """ move a collection with Depth=infinity
        """

        return movetree(self,src,dst,overwrite)
Esempio n. 4
0
    def movetree(self, src, dst, overwrite):
        """ move a collection with Depth=infinity
        """

        return movetree(self, src, dst, overwrite)