Apache Mod-Python - Re: Created: (MODPYTHON-97) mod_python.publisher iterables

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > December 2005 > Re: Created: (MODPYTHON-97) mod_python.publisher iterables





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Created: (MODPYTHON-97) mod_python.publisher iterables
Gregory (Grisha) Trubetskoy

2005-12-09, 2:47 am


On Thu, 8 Dec 2005, Jim Gallacher wrote:

> I believe this is the source of this change:
> http://issues.apache.org/jira/browse/MODPYTHON-15


Thanks! So quoting from the description:

---

Suppose this function in a published module :

def index(req)
req.content_type = 'text/plain'
yield '1\n'
yield '2\n'
yield '3\n'
yield '4\n'

When published, this module should return a text content with
'1\n2\n3\n4\n'.

---

I'd expect this to return '1\n'. Because in my mind one HTTP request
corresponds to one call to the published function?

(Also I guess a subsequent call which happens to hit the same httpd
process would return '2\n', etc.)

Grisha

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com