upload_3_1.py 362 B

12345678910
  1. def showUpload(self, ftype, id=0, linkonly=0):
  2. file = model.Files.getFileById(id)
  3. ns = {'site': self,
  4. 'BASE_URL': getConfig().BASE_URL,
  5. 'file': file,
  6. 'page_id': amiweb.session()['current_page_id'],
  7. 'ftype': ftype,
  8. 'linkonly': linkonly}
  9. return render("skeletonz/plugins/upload/view/upload.tmpl", ns)