Quellcode durchsuchen

add comment about 'isMove' special case

Guénaël Muller vor 6 Jahren
Ursprung
Commit
6df3311639
1 geänderte Dateien mit 8 neuen und 0 gelöschten Zeilen
  1. 8 0
      tracim/tracim/lib/webdav/sql_resources.py

+ 8 - 0
tracim/tracim/lib/webdav/sql_resources.py Datei anzeigen

@@ -1007,6 +1007,14 @@ class File(DAVNonCollection):
1007 1007
 
1008 1008
     def copyMoveSingle(self, destpath, isMove):
1009 1009
         if isMove:
1010
+            # INFO - G.M - 12-03-2018 - This case should not happen
1011
+            # As far as moveRecursive method exist, all move should not go
1012
+            # through this method. If such case appear, try replace this to :
1013
+            ####
1014
+            # self.move_file(destpath)
1015
+            # return
1016
+            ####
1017
+
1010 1018
             raise NotImplemented
1011 1019
 
1012 1020
         new_file_name = None