示例#1
0
 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)
示例#3
0
 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)
示例#4
0
 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)