def js_input(self):
     multimedia_connect = MultimediaConnect()
     url = multimedia_connect.upload_url()
     upload_error = _(u"Error uploading file, please try again or use a diferent file")
     upload_success = _(u"File uploaded correctly")
     return self.js_template_input % dict(id=self.id, 
         id_uploader=self.uploader_id(), upload_url=url,
         upload_error=upload_error, upload_success=upload_success)
 def js_display(self):
     multimedia_connect = MultimediaConnect()
     url = multimedia_connect.upload_url()
     return self.js_template_display % dict(upload_url=url)