tipfy

How to write Big files into Blobstore using experimental API?

和自甴很熟 提交于 2019-11-30 02:13:02
I have dilemma.. I'm uploading files both in scribd store and blobstore using tipfy as framework. I have webform with action is not created by blobstore.create_upload_url (i'm just using url_for('myhandler')). I did it because if i'm using blobstore handler the POST response parsed and I cannot use normal python-scribd api to upload file into scribd store. Now I have working scribd saver: class UploadScribdHandler(RequestHandler, BlobstoreUploadMixin): def post(self): uploaded_file = self.request.files.get('upload_file') fname = uploaded_file.filename.strip() try: self.post_to_scribd(uploaded

Authentication using any OpenID with Tipfy

对着背影说爱祢 提交于 2019-11-28 23:15:48
问题 I am developing the authentication part of my app and I've run into issues with coding authentication using OpenID. I've looked at the Tipfy example code, but it seems written under the assumption that the OpenID provider is hard-coded to google. I would like the user to be able to provide any OpenID they desire (isn't that the point?). Does anyone have any example code that shows a user logging in using a user-supplied OpenID? 回答1: Does Tipfy allow any OpenID authentication? If you want to