-
Notifications
You must be signed in to change notification settings - Fork 431
Add SQLAlchemy storage #527
Add SQLAlchemy storage #527
Conversation
f303d5b
to
46481b0
Compare
from sqlalchemy.types import PickleType | ||
|
||
|
||
__author__ = '[email protected] (Dominik Miedzinski)' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
46481b0
to
77ecb62
Compare
"""OAuth 2.0 utilities for SQLAlchemy. | ||
Utilities for using OAuth 2.0 in conjunction with SQLAlchemy. | ||
Heavily inspired by equivalent Django module. | ||
""" |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
77ecb62
to
f5b406e
Compare
I have pushed new changes, as suggested. Note that this code was heavily inspired by existing Django module (including coding style and documentation quality). |
e2884d7
to
78ba5a0
Compare
I'm sorry you give you the impression of inconsistency here - but we are holding new changes to a higher standard than existing code. @waprin is working on re-writing the django modules to better fit our new standards and documentation quality. |
"""OAuth 2.0 utilities for SQLAlchemy. | ||
|
||
Utilities for using OAuth 2.0 in conjunction with SQLAlchemy. | ||
Heavily inspired by equivalent Django module. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
"""Write a Credentials to the SQLAlchemy datastore. | ||
|
||
Args: | ||
credentials: Credentials, the credentials to store. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@miedzinski this is getting close, most of my nits are just around documentation and such. Thank you for this. Once I'm satisfied, one of the other reviewers will do a final review. :) |
self.assertTrue(q.first() is None) | ||
|
||
|
||
if __name__ == '__main__': # pragma: NO COVER |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
bd88503
to
dbd0fdb
Compare
Done. |
I'm reasonably satisfied. @nathanielmanistaatgoogle do you want to take a look? |
@nathanielmanistaatgoogle seems to be very busy, @miedzinski please feel free to bug me tomorrow if he hasn't responded. Since this lives in contrib, I'd be okay with merging it. |
dbd0fdb
to
c31ff3d
Compare
Returns: | ||
A :class:`oauth2client.Credentials` instance or `None`. | ||
""" | ||
credential = None |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Done with my first round of review. |
c31ff3d
to
5048d83
Compare
There you go. |
#319, #345
Heavily inspired by
oauth2client.contrib.django_orm
.