i'm having "AttributeError: 'function' object has no attribute
'add_processor'" exception, why is that? i'm using mod_wsgi with
webpy.
here is how i define app and session:
app = web.application(urls, globals()).wsgifunc()
store = web.session.DBStore(db, 'sessions')
session = web.session.Session(app, store, initializer={'count': 0})
thanks.
You should pass web.application instance to Session, not wsgi function. Try
changing your code to this:
webapp = web.application(urls, globals())
store = web.session.DBStore(db, 'sessions')
session = web.session.Session(webapp, store, initializer={'count': 0})
app = webapp.wsgifunc()
thank you for the quick response. that worked very well. :)
i keep my files seperate from app.py and import them in the app.py.
when i set session.user = user in users.py signin class, i cannot
access session.user in app.py index class. why is that?
thanks again.
try setting web.config.debug = False
thank you. it is working as expected now. :)
On Dec 25, 11:28 am, Anand Chitipothu <anandol...@gmail.com> wrote:
> --
>
> You received this message because you are subscribed to the Google Groups "web.py" group.
> To post to this group, send email to we...@googlegroups.com.
> To unsubscribe from this group, send email to webpy+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
>
>
>