Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
add_processor wsgi problem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
William Gunnells  
View profile  
 More options Oct 31 2012, 4:20 pm
From: William Gunnells <gunne...@gmail.com>
Date: Wed, 31 Oct 2012 13:20:21 -0700 (PDT)
Local: Wed, Oct 31 2012 4:20 pm
Subject: add_processor wsgi problem

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anand Chitipothu  
View profile  
 More options Nov 1 2012, 6:47 am
From: Anand Chitipothu <anandol...@gmail.com>
Date: Thu, 1 Nov 2012 16:17:23 +0530
Local: Thurs, Nov 1 2012 6:47 am
Subject: Re: [webpy] add_processor wsgi problem

On Thu, Nov 1, 2012 at 1:50 AM, William Gunnells <gunne...@gmail.com> wrote:
> 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

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »