On Tue, Jun 29, 2010 at 2:28 AM, Oliver Christen
<[email protected]>wrote:

> hello
>
> Im using pylons 0.9.7 in a project, but when I try to use the
> theoretically global object "response", I get the following error
> message in logs:
>
> Error - <type 'exceptions.NameError'>: global name 'response' is not
> defined
>
> the error happens at this line in my code:
>
> response.headers['content-type'] = 'application/x-json'
>
> do I have to explicitly import some module or something ?
>
> thanks in advance
> Oliver
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<pylons-discuss%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>
>
Oliver,

from pylons import response

Vince

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to