I've avoided editing oauth10a_account.py by moving the directory
oauth2 to web2py (and keeping httplib2 inside oauth2.

Not happy that I've put this in Web2py's root but I've avoided editing
the framework source and don't need to worry about overwriting files
when I upgrade Web2py.

On Feb 11, 1:46 pm, Carl <[email protected]> wrote:
> I'm using OAuth/LinkedIn on GAE.
>
> To get oauth/LinkedIn to run on dev_appserver/GAE I had to copy
> directory oauth2 from web2py/site-packages to web2py/gluon/contrib and
> httplib2 from site-packages to web2py/gluon/contrib/oauth2
>
> Then in oauth10a_account.py change "import oauth2 as oauth" to "import
> gluon.contrib.oauth2 as oauth".
>
> Bingo.
>
> But.. is there a convention that will make web2py upgrades
> straightforward?

Reply via email to