add_processor wsgi problem

78 views
Skip to first unread message

William Gunnells

unread,
Oct 31, 2012, 4:20:21 PM10/31/12
to we...@googlegroups.com
http://paste.org/56456

   app.add_processor(auth_app_processor)
[Wed Oct 31 12:46:24 2012] [error] [client 50.0.17.2] AttributeError: 'function' object has no attribute 'add_processor'
[Wed Oct 31 12:46:24 2012] [error] [client 50.0.17.2] File does not exist: /var/www/pvperformance/favicon.ico

Not sure why I get this error. Without WSGI it works fine, sessions works, fine but 
app.add_processor(auth_app_processor) does not work

Anand Chitipothu

unread,
Nov 1, 2012, 6:47:23 AM11/1/12
to webpy
You need to call add_processor on web.application object, not on wsgi function. Removing app = app.wsgifunc() will fix it.

...
# app = app.wsgifunc()
app.add_processor(auth_app_processor)

Anand

Reply all
Reply to author
Forward
0 new messages