Re: Request object getting switched

2003-12-19 Thread Eric Sammer
Stas Bekman wrote: Yes, sorry, it's $r->prev(), was writing from memory... Got cha. Just wanted to make sure it wasn't something unexplained. Your handler doesn't redirect, but Apache does / -> /index.tt is a subrequest. Right. I was afraid that it was *supposed* to be accessible via $r->main()

Re: Request object getting switched

2003-12-19 Thread Stas Bekman
Eric Sammer wrote: Stas Bekman wrote: You have this problem when running a sub-request. In which case you need to do: my $pnote = $r->main ? $r->main->pnotes('foo') : $r->pnotes('foo'); http://perl.apache.org/docs/1.0/api/Apache.html#_r_E_gt_main http://perl.apache.org/docs/1.0/guide/snippets.h

Re: Request object getting switched

2003-12-19 Thread Eric Sammer
Stas Bekman wrote: You have this problem when running a sub-request. In which case you need to do: my $pnote = $r->main ? $r->main->pnotes('foo') : $r->pnotes('foo'); http://perl.apache.org/docs/1.0/api/Apache.html#_r_E_gt_main http://perl.apache.org/docs/1.0/guide/snippets.html#Passing_Notes_Be

Re: Request object getting switched

2003-12-19 Thread Stas Bekman
Eric Sammer wrote: All: Apache 1.3.28, MP 1.29, Perl 5.8.0 I'm having a problem with $r being different between request phases of the same request. Specifically, $r->pnotes() is missing a parameter that is packed into it by an earlier handler. Here's the setup: In virtual host context: PerlIn

Re: Request object getting switched

2003-12-18 Thread Eric Sammer
Eric Sammer wrote: I'm sure I can solve the problem by moving the PerlInitHandler handler to something post-uri-translate. I was wrong. Moving the handler to a Perl*Handler that takes place after PerlTransHandler does not fix the problem. I have to admit defeat. If anyone is aware of a fix for this

Re: Request object getting switched

2003-12-18 Thread Eric Sammer
I apologize for bad form replying to my own message... I found the $r is different because the file being processed by the Files PerlHandler was an index page and was being accessed via '/' (rather than '/index.tt'). When accessed as '/index.tt' $r->pnotes() is populated as expected. I'm sure I ca

Request object getting switched

2003-12-18 Thread Eric Sammer
All: Apache 1.3.28, MP 1.29, Perl 5.8.0 I'm having a problem with $r being different between request phases of the same request. Specifically, $r->pnotes() is missing a parameter that is packed into it by an earlier handler. Here's the setup: In virtual host context: PerlInitHandler - Does so