I recommend posting to the dedicated Flask list for Flask-related discussion:

http://flask.pocoo.org/mailinglist/


To answer your question, you can put the oid object in a separate
module (e.g. "extensions.py") and import and initialize it with the
app later with oid.init_app(app).


On 12 February 2011 19:40, Damjan <[email protected]> wrote:
> I want to add OpenID authentication to my Flask app.
> The layout of my app is like this:
>
> my_app/
>  __init__.py     # the app object is created here
>  admin.py        # flask.Module - I only need auth here
>  frontend.py     # flask.Module - this is fully public views
>
> following the Flask-OpenID example, I need to create the oid object
> with reference to the app, but then I will need that instance in
> admin.py .. and I have no idea how to do that.
>
> Any ideas?
>
>
> --
> damjan
>
> --
> You received this message because you are subscribed to the Google Groups 
> "pocoo-libs" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/pocoo-libs?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pocoo-libs?hl=en.

Reply via email to