Re: method handlers and push_handlers / set_handlers

2002-02-21 Thread Tim Noll
Stas Bekman wrote: > Tim Noll wrote: > > Is there a proper way to call a method handler using either push_handlers or > > set_handlers? They both appear to call all handler refs just like normal > > subs, with no class name passed in. It appears that enclosing the handler in

Re: [Templates] problems with mod_perl example from Template Toolkit tutorial

2002-02-20 Thread Tim Noll
Tim Noll wrote: > > As an alternative, I have used a PerlFixupHandler that detects a MIME > > type of text/html and for only those enables Mason leaving the rest > > alone. This lets autoindexing still work properly, as well as images > > and other content in the same di

Re: method handlers and push_handlers / set_handlers

2002-02-20 Thread Tim Noll
Tim Noll wrote: > I know this is a pretty generic question, but if nobody knows a quick > answer, I can get more specific in a later post. Under Apache 1.3.22 / > mod_perl 1.26, even while using $SIG{__WARN__} = \&Carp::cluck, I keep > getting "Use of uninitialized value.&quo

Re: "Use of uninitialized value." with no line number in error log

2002-02-20 Thread Tim Noll
Stas Bekman wrote: > > I know this is a pretty generic question, but if nobody knows a quick > > answer, I can get more specific in a later post. Under Apache 1.3.22 / > > mod_perl 1.26, even while using $SIG{__WARN__} = \&Carp::cluck, I keep > > getting "Use of uninitialized value." in the Apache

method handlers and push_handlers / set_handlers

2002-02-20 Thread Tim Noll
Is there a proper way to call a method handler using either push_handlers or set_handlers? They both appear to call all handler refs just like normal subs, with no class name passed in. It appears that enclosing the handler in an anonymous sub is a workaround, but I was wondering if there was a be

"Use of uninitialized value." with no line number in error log

2002-02-20 Thread Tim Noll
I know this is a pretty generic question, but if nobody knows a quick answer, I can get more specific in a later post. Under Apache 1.3.22 / mod_perl 1.26, even while using $SIG{__WARN__} = \&Carp::cluck, I keep getting "Use of uninitialized value." in the Apache error log, with absolutely no line

Re: image corruption

2002-02-06 Thread Tim Noll
From: "Lyle Brooks" <[EMAIL PROTECTED]> To: "Tim Noll" <[EMAIL PROTECTED]> Cc: "Lyle Brooks" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 5:54 PM Subject: Re: image corruption > > Ok, a couple of things

Re: image corruption

2002-02-05 Thread Tim Noll
Whoops, I hacked up my example a little to make it easier it to read, and I accidentally removed the line: $file =~ s{^/}{}; But, it was in the original. Really. :-) -Tim - Original Message - From: "Lyle Brooks" <[EMAIL PROTECTED]> To: "Tim Noll" <[

image corruption

2002-02-05 Thread Tim Noll
I'm attempting to use mod_perl and Template Toolkit to serve up templates. However, I'm having a problem with the images in those templates: They're passing through the content handler, and thus getting corrupted. My first thought was to return DECLINED from the content handler if the request is

Re: problems with DirectoryIndex under mod_perl + Template Toolkit

2002-01-31 Thread Tim Noll
. In no case have I seen a straightforward solution. Is there some reason why this isn't easier to handle if indeed it's such a common problem? -Tim - Original Message - From: "Stas Bekman" <[EMAIL PROTECTED]> To: "Tim Noll" <[EMAIL PROTECTED]>

problems with DirectoryIndex under mod_perl + Template Toolkit

2002-01-29 Thread Tim Noll
I'm using mod_perl + Template Toolkit, and I'm having trouble getting Apache to pass the DirectoryIndex to my handler. The handler is supposed to take the path_info and pull a template of the same name from a subdirectory called 'html'. This works fine for file names which do exist in the subdire