Re: [jira] Created: (MODPYTHON-97) mod_python.publisher iterables and content_type broken

2005-12-08 Thread Gregory (Grisha) Trubetskoy
On Thu, 8 Dec 2005, Graham Dumpleton (JIRA) wrote: In 3.2, mod_python.publisher was modified so that if it encountered an interable it would recursively iterate over the items and publish each with the result being concatenated. I didn't know this either. I'm curious what the rational for th

Re: [jira] Created: (MODPYTHON-97) mod_python.publisher iterables and content_type broken

2005-12-08 Thread Jim Gallacher
Gregory (Grisha) Trubetskoy wrote: On Thu, 8 Dec 2005, Graham Dumpleton (JIRA) wrote: In 3.2, mod_python.publisher was modified so that if it encountered an interable it would recursively iterate over the items and publish each with the result being concatenated. I didn't know this either.

Re: [jira] Created: (MODPYTHON-97) mod_python.publisher iterablesand content_type broken

2005-12-08 Thread Graham Dumpleton
Jim Gallacher wrote .. > Gregory (Grisha) Trubetskoy wrote: > > > > On Thu, 8 Dec 2005, Graham Dumpleton (JIRA) wrote: > > > >> In 3.2, mod_python.publisher was modified so that if it encountered > an > >> interable it would recursively iterate over the items and publish each > >> with the resul

Re: [jira] Created: (MODPYTHON-97) mod_python.publisher iterables and content_type broken

2005-12-08 Thread Gregory (Grisha) Trubetskoy
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'

Re: [jira] Created: (MODPYTHON-97) mod_python.publisher iterables and content_type broken

2005-12-08 Thread Gregory (Grisha) Trubetskoy
On Thu, 8 Dec 2005, Gregory (Grisha) Trubetskoy wrote: 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'.

Re: [jira] Created: (MODPYTHON-97) mod_python.publisher iterablesand content_type broken

2005-12-08 Thread Graham Dumpleton
Grisha wrote .. > > On Thu, 8 Dec 2005, Gregory (Grisha) Trubetskoy wrote: > > > 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 > >

[jira] Created: (MODPYTHON-98) wrong handler supplied to req.add_handler() generates error

2005-12-08 Thread Graham Dumpleton (JIRA)
wrong handler supplied to req.add_handler() generates error --- Key: MODPYTHON-98 URL: http://issues.apache.org/jira/browse/MODPYTHON-98 Project: mod_python Type: Bug Components: core Versions: 3.2, 3.1.

[jira] Commented: (MODPYTHON-98) wrong handler supplied to req.add_handler() generates error

2005-12-08 Thread Graham Dumpleton (JIRA)
[ http://issues.apache.org/jira/browse/MODPYTHON-98?page=comments#action_12359850 ] Graham Dumpleton commented on MODPYTHON-98: --- A related note against this issue with req.add_handler(), if you errornously do something like: def accesshandler(

Re: [jira] Created: (MODPYTHON-97) mod_python.publisher iterablesand content_type broken

2005-12-08 Thread Nicolas Lehuen
2005/12/9, Graham Dumpleton <[EMAIL PROTECTED]>:> Grisha wrote ..> >> > On Thu, 8 Dec 2005, Gregory (Grisha) Trubetskoy wrote:> >> > >  def index(req) > > >  req.content_type = 'text/plain'> > >  yield '1\n'> > >  yield '2\n'> > >  yield '3\n'> > >  yield '4\n'> > >> > >  When p

Re: [jira] Created: (MODPYTHON-97) mod_python.publisher iterablesand content_type broken

2005-12-08 Thread Nicolas Lehuen
2005/12/9, Nicolas Lehuen <[EMAIL PROTECTED]>: Uh oh looks like I'm the one to blame here. As mentioned on MODPYTHON-15, Graham and I had a little discussion about the potential for infinite generators, and that's all. My bad is to have unilateraly decided to check in the change though it has not b