I extended RavenPlus to support Google OAuth2 authentication for Blogger/Blogspot with the help of the Google API Client Library for Python version 1.2. Out of the box, this library does not support Python version 2.4, the version in which RavenPlus (and Raven) was built. Below are the modifications, in RED, that I have made to this library to get it working with version 2.4 of Python.
Do take note that I did not use the following modules in this library in RavenPlus - thus I am not sure if they will choke when running under Python version 2.4:
- apiclient\sample_tools.py
- apiclient\channel.py
- oauth2client\appengine.py
- oauth2client\django_orm.py
- oauth2client\gce.py
- oauth2client\keyring_storage.py
- oauth2client\locked_file.py
- oauth2client\multistore_file.py
- oauth2client\xsrfutil.py
oauth2client\client.py
At line 226:
#
# ChuahTC Date: 6-6-2015 - Fix for Python 2.4.
# From: https://code.google.com/p/paver/issues/detail?id=28
# m = __import__(module, fromlist=module.split('.')[:-1])
m = __import__(module, globals(), locals(), module.split('.')[:-1])
#
apiclient\discovery.py
At line 31:
#
# Chuah TC 30-5-2015
# from email.mime.multipart import MIMEMultipart
# from email.mime.nonmultipart import MIMENonMultipart
#
from email.MIMEMultipart import MIMEMultipart
from email.MIMENonMultipart import MIMENonMultipart
#
apiclient\http.py
At line 40:
# Chuah TC 30-5-2015
# from email.generator import Generator
# from email.mime.multipart import MIMEMultipart
# from email.mime.nonmultipart import MIMENonMultipart
# from email.parser import FeedParser
#
from email.Generator import Generator
from email.MIMEMultipart import MIMEMultipart
from email.MIMENonMultipart import MIMENonMultipart
from email.Parser import FeedParser
#
Hi T.C.!
ReplyDeleteDo you have any new about Picasa?
I am still working on it. I need to take a break looking at computer code. My brain has gone numb.
ReplyDeleteHello T.C.!
ReplyDeleteDo you have any new about Picasa problem?
Thanks!
It is coming along nicely. My plan to modify GData Photo (the portion of GData that talks to Picasa) is working out as planned.
DeleteWhat I do not have much of is free time to work on it. So please be patient.
For future queries on my work on Picasa uploads from Raven+, can you please post your comments here (which is more appropriate):
Deletehttp://chuahtc.blogspot.com/2015/10/a-brief-update-on-picasa-and-ravenplus.html
Thank you.
Ok, thanks, I will wait
Delete