controller.py 374 B

1234567891011121314
  1. from ckan.lib.base import BaseController
  2. import ckan.lib.jsonp as jsonp
  3. import ckanext.s3multipart.plugin as plugin
  4. class S3MultipartController(BaseController):
  5. @jsonp.jsonpify
  6. def s3_auth(self, dataset):
  7. return plugin.get_session_credentials(dataset)
  8. @jsonp.jsonpify
  9. def s3_post(self, dataset):
  10. return plugin.get_presigned_post(dataset)