Browse Source

avoid colon character in deleted file_name from webdav

Guénaël Muller 6 years ago
parent
commit
3589eb1ac8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tracim/tracim/lib/webdav/sql_resources.py

+ 1 - 1
tracim/tracim/lib/webdav/sql_resources.py View File

89
             new_name = re.sub(r'(\.[^.]+)$', '', new_name)
89
             new_name = re.sub(r'(\.[^.]+)$', '', new_name)
90
 
90
 
91
         if self._type in [ActionDescription.ARCHIVING, ActionDescription.DELETION]:
91
         if self._type in [ActionDescription.ARCHIVING, ActionDescription.DELETION]:
92
-            new_name += ' - %s the %s' % (self._to_name[self._type], datetime.now().strftime('%d-%m-%Y at %H:%M'))
92
+            new_name += ' - %s the %s' % (self._to_name[self._type], datetime.now().strftime('%d-%m-%Y at %H_%M'))
93
         else:
93
         else:
94
             new_name = re.sub(
94
             new_name = re.sub(
95
                 r'( - (%s|%s) the .*)$' % (self._to_name[ActionDescription.DELETION], self._to_name[ActionDescription.ARCHIVING]),
95
                 r'( - (%s|%s) the .*)$' % (self._to_name[ActionDescription.DELETION], self._to_name[ActionDescription.ARCHIVING]),