On Mon, Apr 29, 2013 at 2:24 PM, Jonathan Vanasco <[email protected]>wrote:

> what's the best way to create a response from a string ?  it's not a file
> to serve or a template to render.  it's driving me a bit crazy trying to
> figure out a simple/idiomatic way to do this.  ( i can do it in a complex ,
> obtuse way that will be a pain to maintain )


Are you looking for something other than:

from pyramid.response import Response
return Response("Hey!")

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to