On 2013-04-29 23:37, John Anderson wrote:
On Mon, Apr 29, 2013 at 2:24 PM, Jonathan Vanasco <jonat...@findmeon.com <mailto:jonat...@findmeon.com>> 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!")
documented here: https://pyramid.readthedocs.org/en/latest/narr/views.html#view-callable-responses Jens -- Klein & Partner KG, member of BlueDynamics Alliance -- 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 pylons-discuss+unsubscr...@googlegroups.com. To post to this group, send email to pylons-discuss@googlegroups.com. Visit this group at http://groups.google.com/group/pylons-discuss?hl=en. For more options, visit https://groups.google.com/groups/opt_out.