def handle_upload(self, id, attached_file): if id in self.objectIds(): self.manage_delObjects([ id, ]) manage_addExtFile(self, id, title=attached_file.filename, file=attached_file)
def handle_upload(self, id, attached_file): if id in self.objectIds(): self.manage_delObjects([id,]) manage_addExtFile(self, id, title=attached_file.filename, file=attached_file)
def manage_addFile(self, id, file="", **kwargs): if self.is_ext: return manage_addExtFile(self, id=id, file=file) return NyContainer.manage_addFile(self, id, file)