Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Flask factory pattern support #73

Open
KeNaCo opened this issue Jan 23, 2016 · 2 comments
Open

Flask factory pattern support #73

KeNaCo opened this issue Jan 23, 2016 · 2 comments

Comments

@KeNaCo
Copy link

KeNaCo commented Jan 23, 2016

Lib don't allow to use factory pattern.

@Informatic
Copy link

Well, dirty hack for that is:

social._state = social.init_app(app, WhateverDatastoreYouImagine(...))

Oh, and, btw, it's properly fixed in #70

@KeNaCo
Copy link
Author

KeNaCo commented Jan 24, 2016

Already working on it.
I'm not fun of dirty hacks.. and #70 is way away from proper fix.. self._state is nice shortcut to object if you still have instance, but proper way is using app context.

@KeNaCo KeNaCo mentioned this issue Jan 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants