12345678910111213 |
- def fixFilename(self, action, new_name):
- ns = amiweb.session()['upload_ns']
- if action == 'change':
- if model.Files.countFilesWithFilename(new_name):
- ns['filename'] = filename
- ns['new_filename'] = model.Files.newFilename(filename)
- return render("skeletonz/plugins/upload/view/upload_already_found.tmpl", ns)
- ns['filename'] = new_name
- #Else let is stay the same
- del amiweb.session()['upload_ns']
- return self.uploadComplete(ns)
|