upload_3_2.py 264 B

1234567
  1. def deleteFile(self, file_id, ftype, linkonly=0):
  2. ident = model.Files.deleteFileById(file_id)
  3. page_obj = CMSModel.Pages.getPageById(amiweb.session()['current_page_id'])
  4. AmiCache.expireCurrentPage()
  5. return self.getEditHTML(ftype, ident, linkonly)