Skip to content
Browse files

Add ftw specific uploadinit View.

  • Loading branch information...
1 parent 9315ab0 commit 85dec24350645c98a72d156e15dc716d5c225436 @phgross phgross committed Mar 15, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 ftw/tabbedview/browser/quick_upload.py
View
12 ftw/tabbedview/browser/quick_upload.py
@@ -0,0 +1,12 @@
+from collective.quickupload.browser.quick_upload import QuickUploadInit, FLASH_UPLOAD_JS, XHR_UPLOAD_JS
+
+
+class FtwUploadInit(QuickUploadInit):
+
+ def __call__(self, for_id="uploader"):
+ self.uploader_id = for_id
+ settings = self.upload_settings()
+ if self.qup_prefs.use_flashupload :
+ return FLASH_UPLOAD_JS % settings
+ return XHR_UPLOAD_JS % settings
+

0 comments on commit 85dec24

Please sign in to comment.
Something went wrong with that request. Please try again.