On Fri, Jul 23, 2010 at 4:52 AM, Jens Hoffrichter
wrote:
> On 22 July 2010 20:01, Mike Orr wrote:
> I think you want something like this.
>
> from paste.fileapp import FileApp
>
> # in controller
> #...in some action, get the path to serve
>
On 22 July 2010 20:01, Mike Orr wrote:
>>> > I think you want something like this.
>>> >
>>> > from paste.fileapp import FileApp
>>> >
>>> > # in controller
>>> > #...in some action, get the path to serve
>>> > wsgi_app = FileApp(path)
>>> > return wsgi_app(request
On Thu, Jul 22, 2010 at 1:40 AM, Marius Gedminas wrote:
> On Wed, Jul 21, 2010 at 12:40:23PM -0700, Mike Orr wrote:
>> On Wed, Jul 21, 2010 at 12:33 PM, Ian Wilson
>> wrote:
>> > Hello,
>> >
>> > I think you want something like this.
>> >
>> > from paste.fileapp import FileApp
>> >
>> > # in
serving files are all about http headers.
On Jul 22, 11:40 am, Marius Gedminas wrote:
> On Wed, Jul 21, 2010 at 12:40:23PM -0700, Mike Orr wrote:
> > On Wed, Jul 21, 2010 at 12:33 PM, Ian Wilson
> > wrote:
> > > Hello,
>
> > > I think you want something like this.
>
> > > from paste.fileapp imp
On Wed, Jul 21, 2010 at 12:40:23PM -0700, Mike Orr wrote:
> On Wed, Jul 21, 2010 at 12:33 PM, Ian Wilson
> wrote:
> > Hello,
> >
> > I think you want something like this.
> >
> > from paste.fileapp import FileApp
> >
> > # in controller
> > #...in some action, get the path to ser
On Wed, Jul 21, 2010 at 1:03 PM, Jens Hoffrichter
wrote:
> Hi,
>
> On 21 July 2010 21:40, Mike Orr wrote:
>> On Wed, Jul 21, 2010 at 12:33 PM, Ian Wilson
>> wrote:
>>> Hello,
>>>
>>> I think you want something like this.
>>>
>>> from paste.fileapp import FileApp
>>>
>>> # in controller
Hi,
On 21 July 2010 21:40, Mike Orr wrote:
> On Wed, Jul 21, 2010 at 12:33 PM, Ian Wilson
> wrote:
>> Hello,
>>
>> I think you want something like this.
>>
>> from paste.fileapp import FileApp
>>
>> # in controller
>> #...in some action, get the path to serve
>> wsgi_ap
On 2010-7-21 21:40, Mike Orr wrote:
On Wed, Jul 21, 2010 at 12:33 PM, Ian Wilson wrote:
Hello,
I think you want something like this.
from paste.fileapp import FileApp
# in controller
#...in some action, get the path to serve
wsgi_app = FileApp(path)
return
On Wed, Jul 21, 2010 at 12:33 PM, Ian Wilson wrote:
> Hello,
>
> I think you want something like this.
>
> from paste.fileapp import FileApp
>
> # in controller
> #...in some action, get the path to serve
> wsgi_app = FileApp(path)
> return wsgi_app(request.environ
Hello,
I think you want something like this.
from paste.fileapp import FileApp
# in controller
#...in some action, get the path to serve
wsgi_app = FileApp(path)
return wsgi_app(request.environ, self.start_response)
A better solution you might want to look into
Hi everyone,
I looked into the documentation, but couldn't find any mentioning of
what I could return from an action.
I know that I can return a string, most likely rendered from a template.
Is it possible to return a file object from an action, so that the
contents of the file will be delivered
11 matches
Mail list logo