Re: What phase am I in?

2001-12-28 Thread Eric Cholet

--On jeudi 20 décembre 2001 16:10 -0600 Dave Rolsky <[EMAIL PROTECTED]> 
wrote:

> On Thu, 20 Dec 2001, Perrin Harkins wrote:
>
>> > I've looked through the mod_perl docs and guide and am unable to find
>> > something that I can use in a handler to figure out what the current
>> > phase is.  This seems like such an obvious thing that I can't believe
>> > it doesn't exist.  Therefore I will conclude that I'm completely
>> > blind.  Anyone care to open my eyes?
>>
>> http://mathforum.org/epigone/modperl/liphortwa/Pine.LNX.4.10.99092112175
>> 10.5 [EMAIL PROTECTED]
>>
>> It's called current_callback().
>
> Grr, its not documented when I do 'perldoc Apache'.

It is now.

--
Eric Cholet




Re: What phase am I in?

2001-12-22 Thread Stas Bekman

Dave Rolsky wrote:

> On 21 Dec 2001, Vivek Khera wrote:
> 
> 
>>>"DR" == Dave Rolsky <[EMAIL PROTECTED]> writes:
>>>
It's called current_callback().

>>DR> Grr, its not documented when I do 'perldoc Apache'.
>>
>>There's a lot of stuff not so documented.  The mod_perl book has much
>>more complete docs.
>>
> 
> Which is nice for ORA and the books authors, but fairly irritating for
> folks like myself.  Hell, I have the book but I don't always have it with
> me.


You can always send patches :)

> I'd submit patches for this but I'm figuring 1.2x will be out of date soon
> enough with 2.0 in the works.  Hopefully that will be better documented
> and if not, I can always help out.


I think 1.x is going to stick for a while, just like many people still 
using perl5.004 and apache 1.3.12 :) So docs won't never hurt.

I really hope to get a lot of help from you guys for 2.0, If you 
remember my original docs RFC back a few months ago, there will be a lot 
of documentation. If you are already playing with things like the new 
Apache::Test (which already has quite a big tutorial and I plan on 
competing it next week, check the modperl-docs repository) and modperl 
2.0 you can start submit docs patches right now.

Ideally the early adopters can help with the docs and when mod_perl 2.0 
is released most of the essential docs should be there already for 
others to learn from.

If you are not sure where you can help, you can already join the 
docs-dev  perl.apache.org and docs-cvs  perl.apache.org lists 
(both have a low traffic right now) and silentry lurk until you get to 
see something that you can give a hand with.

_
Stas Bekman JAm_pH  --   Just Another mod_perl Hacker
http://stason.org/  mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/




Re: What phase am I in?

2001-12-21 Thread Perrin Harkins

> I have the book but I don't always have it with
> me.

That chapter is actually available for free on-line at
http://www.modperl.com/.
- Perrin




Re: What phase am I in?

2001-12-21 Thread Thomas Eibner

On Sat, Dec 22, 2001 at 06:04:08AM +, Mark Fowler wrote:
> On Fri, 21 Dec 2001, Dave Rolsky wrote:
> 
> > Which is nice for ORA and the books authors, but fairly irritating for
> > folks like myself.  Hell, I have the book but I don't always have it with
> > me.
> 
> For what it's worth: 
> http://safari.oreilly.com/main.asp?srchtext=current_callback

I think his main problem was that he didn't know wheter there was such
a function or what it was called. There's a good chance Dave would be
able to figure out how to use it from reading the sources if he actually
knew what the function was called.

-- 
  Thomas Eibner  DnsZone 
  mod_pointer  



Re: What phase am I in?

2001-12-21 Thread Mark Fowler

On Fri, 21 Dec 2001, Dave Rolsky wrote:

> Which is nice for ORA and the books authors, but fairly irritating for
> folks like myself.  Hell, I have the book but I don't always have it with
> me.

For what it's worth: 
http://safari.oreilly.com/main.asp?srchtext=current_callback

I know it's no reason to not have good documentation, but having a copy of 
the eagle book to hand is very useful.  Does anyone know if ORA have any 
plans to release it on CD at any point?

The Perl CD Bookshelf is great - especially as I can carry it around with 
me on my laptop and not have to worry about connecting to the net to read 
it.

Later.

Mark.

-- 
s''  Mark Fowler London.pm   Bath.pm
 http://www.twoshortplanks.com/  [EMAIL PROTECTED]
';use Term'Cap;$t=Tgetent Term'Cap{};print$t->Tputs(cl);for$w(split/  +/
){for(0..30){$|=print$t->Tgoto(cm,$_,$y)." $w";select$k,$k,$k,.03}$y+=2}





Re: What phase am I in?

2001-12-21 Thread Dave Rolsky

On 21 Dec 2001, Vivek Khera wrote:

> > "DR" == Dave Rolsky <[EMAIL PROTECTED]> writes:
>
> >> It's called current_callback().
>
> DR> Grr, its not documented when I do 'perldoc Apache'.
>
> There's a lot of stuff not so documented.  The mod_perl book has much
> more complete docs.

Which is nice for ORA and the books authors, but fairly irritating for
folks like myself.  Hell, I have the book but I don't always have it with
me.

I'd submit patches for this but I'm figuring 1.2x will be out of date soon
enough with 2.0 in the works.  Hopefully that will be better documented
and if not, I can always help out.


-dave




Re: What phase am I in?

2001-12-21 Thread Vivek Khera

> "DR" == Dave Rolsky <[EMAIL PROTECTED]> writes:

>> It's called current_callback().

DR> Grr, its not documented when I do 'perldoc Apache'.

There's a lot of stuff not so documented.  The mod_perl book has much
more complete docs.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.Khera Communications, Inc.
Internet: [EMAIL PROTECTED]   Rockville, MD   +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/



Re: What phase am I in?

2001-12-20 Thread Dave Rolsky

On Thu, 20 Dec 2001, Perrin Harkins wrote:

> > I've looked through the mod_perl docs and guide and am unable to find
> > something that I can use in a handler to figure out what the current phase
> > is.  This seems like such an obvious thing that I can't believe it doesn't
> > exist.  Therefore I will conclude that I'm completely blind.  Anyone care
> > to open my eyes?
>
> http://mathforum.org/epigone/modperl/liphortwa/Pine.LNX.4.10.9909211217510.5
> [EMAIL PROTECTED]
>
> It's called current_callback().

Grr, its not documented when I do 'perldoc Apache'.


-dave

/*==
www.urth.org
We await the New Sun
==*/




Re: What phase am I in?

2001-12-20 Thread Perrin Harkins

> I've looked through the mod_perl docs and guide and am unable to find
> something that I can use in a handler to figure out what the current phase
> is.  This seems like such an obvious thing that I can't believe it doesn't
> exist.  Therefore I will conclude that I'm completely blind.  Anyone care
> to open my eyes?

http://mathforum.org/epigone/modperl/liphortwa/Pine.LNX.4.10.9909211217510.5
[EMAIL PROTECTED]

It's called current_callback().

- Perrin




What phase am I in?

2001-12-20 Thread Dave Rolsky

I've looked through the mod_perl docs and guide and am unable to find
something that I can use in a handler to figure out what the current phase
is.  This seems like such an obvious thing that I can't believe it doesn't
exist.  Therefore I will conclude that I'm completely blind.  Anyone care
to open my eyes?


-dave

/*==
www.urth.org
We await the New Sun
==*/




RE: What phase am I in

2000-04-11 Thread Doug MacEachern

On Fri, 7 Apr 2000, Geoffrey Young wrote:

> of note, 1.21_01 introduced $r->notes('PERL_CUR_HOOK'), but why that was
> introduced when there is current_callback() I don't know (it's not in
> Changes as far as I can see)

that's related to this Change:
$r->current_callback now works properly when PerlHandler invokes
subrequests, thanks to James Smith for the spot

with that change, $r->current_callback is implemented using
$r->notes('PERL_CUR_HOOK'), which might change in the future, so stick
with $r->current_callback.





RE: What phase am I in

2000-04-07 Thread Geoffrey Young

of note, 1.21_01 introduced $r->notes('PERL_CUR_HOOK'), but why that was
introduced when there is current_callback() I don't know (it's not in
Changes as far as I can see)

--Geoff

> -Original Message-
> From: Simon Rosenthal [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 07, 2000 2:03 PM
> To: Paul G. Weiss; '[EMAIL PROTECTED]'
> Subject: Re: What phase am I in
> 
> 
> At 12:51 PM 4/7/00 -0400, Paul G. Weiss wrote:
> >Is there any way to determine from the Apache::Request object
> >what phase of handling we'er in?   I have some code that is used
> >during more than one phase and I'd like it to behave differently
> >for each phase.
> 
> the current_callback() method (Eagle book, p465). Funny, I 
> had to find this 
> out yesterday..
> 
> - Simon
> 
> 
> >-Paul
> 
> -
> Simon Rosenthal   ([EMAIL PROTECTED])  
> Web Systems Architect
> Northern Light Technology 222 Third Street, Cambridge MA 02142
> Phone:  (617)577-2796  :   URL:  http://www.northernlight.com
> "Northern Light - Just what you've been searching for"
> 



Re: What phase am I in

2000-04-07 Thread Simon Rosenthal

At 12:51 PM 4/7/00 -0400, Paul G. Weiss wrote:
>Is there any way to determine from the Apache::Request object
>what phase of handling we'er in?   I have some code that is used
>during more than one phase and I'd like it to behave differently
>for each phase.

the current_callback() method (Eagle book, p465). Funny, I had to find this 
out yesterday..

- Simon


>-Paul

-
Simon Rosenthal ([EMAIL PROTECTED])  
Web Systems Architect
Northern Light Technology   222 Third Street, Cambridge MA 02142
Phone:  (617)577-2796  :   URL:  http://www.northernlight.com
"Northern Light - Just what you've been searching for"




What phase am I in

2000-04-07 Thread Paul G. Weiss

Is there any way to determine from the Apache::Request object
what phase of handling we'er in?   I have some code that is used
during more than one phase and I'd like it to behave differently
for each phase.

-Paul