[Catalyst] Lighttpd pathing solved

2006-06-22 Thread Mark Blythe
After much debugging, I finally was able to fix the problem I was having with lighttpd + FastCGI.  See original message below for details.  What it boils down to is that lighttpd seems to report in SCRIPT_NAME (environment var) what some other web servers report in PATH_INFO.  This was causing $c->

Re: [Catalyst] Problem with 'login' method in tutorial

2006-06-22 Thread Peter Traub
yep, it's in: /usr/local/share/perl/5.8.7/Catalyst/Plugin/Authentication/Credential/Password.pm and I looked at it yesterday and there is nothing unusual about the file. Not sure where to go from here. My system is a fresh and clean install that I also just did yesterday. The only non-apt installed

Re: [Catalyst] Problem with 'login' method in tutorial

2006-06-22 Thread Matt S Trout
Peter Traub wrote: > > > On 6/22/06, *Matt S Trout* <[EMAIL PROTECTED] > > wrote: > > Peter Traub wrote: > > Hello, > > > > I'm a Catalyst newbie stuck on the tutorial with following > problem. In > > the Users.pm

Re: [Catalyst] Problem with 'login' method in tutorial

2006-06-22 Thread Peter Traub
On 6/22/06, Matt S Trout <[EMAIL PROTECTED]> wrote: Peter Traub wrote:> Hello,>> I'm a Catalyst newbie stuck on the tutorial with following problem. In> the Users.pm file, the login function fails, as the> call to $c->login() gets the following error:>> [Thu Jun 22 15:57:00 2006]

Re: [Catalyst] C::P::PageCache patch for reducing duplicate processing

2006-06-22 Thread Perrin Harkins
On Thu, 2006-06-22 at 14:01 -0500, [EMAIL PROTECTED] wrote: > Or have the first hit after the expire set the expire time counter to the > next interval so the next hit does not even think to rebuild. Then you can > also rebuild the cache to a temp name and overwrite the current cache when > it is

Re: [Catalyst] Problem with 'login' method in tutorial

2006-06-22 Thread Ash Berlin
Peter Traub wrote: > > On 6/22/06, *Ash Berlin* <[EMAIL PROTECTED] > wrote: > > Peter Traub wrote: > > Hi Ash, > > > > Thanks for the reply. I should've mentioned that the top of my app > > (tutorial.pm

Re: [Catalyst] C::P::PageCache patch for reducing duplicate processing

2006-06-22 Thread A. Pagaltzis
* [EMAIL PROTECTED] <[EMAIL PROTECTED]> [2006-06-22 21:05]: > Or have the first hit after the expire set the expire time > counter to the next interval so the next hit does not even > think to rebuild. Then you can also rebuild the cache to a > temp name and overwrite the current cache when it is c

Re: [Catalyst] Problem with 'login' method in tutorial

2006-06-22 Thread Matt S Trout
Peter Traub wrote: > Hello, > > I'm a Catalyst newbie stuck on the tutorial with following problem. In > the Users.pm file, the login function fails, as the > call to $c->login() gets the following error: > > [Thu Jun 22 15:57:00 2006] [catalyst] [error] Caught exception "Can'

Re: [Catalyst] Problem with 'login' method in tutorial

2006-06-22 Thread Peter Traub
On 6/22/06, Ash Berlin <[EMAIL PROTECTED]> wrote: Peter Traub wrote:> Hi Ash,>> Thanks for the reply. I should've mentioned that the top of my app> (tutorial.pm ) follows the tutorial directions to> the letter, and thus has:>> use Catalyst qw/-Debug Static::Simple Authenticatio

Re: [Catalyst] Problem with 'login' method in tutorial

2006-06-22 Thread Ash Berlin
Peter Traub wrote: > Hi Ash, > > Thanks for the reply. I should've mentioned that the top of my app > (tutorial.pm ) follows the tutorial directions to > the letter, and thus has: > > use Catalyst qw/-Debug Static::Simple Authentication > Authentication::Store::Mi

Re: [Catalyst] Problem with 'login' method in tutorial

2006-06-22 Thread Peter Traub
Hi Ash,Thanks for the reply. I should've mentioned that the top of my app (tutorial.pm) follows the tutorial directions to the letter, and thus has:use Catalyst qw/-Debug Static::Simple Authentication Authentication::Store::Minimal Authentication::Credential::Password  

Re: [Catalyst] Problem with 'login' method in tutorial

2006-06-22 Thread Ash Berlin
Peter Traub wrote: > Hello, > > I'm a Catalyst newbie stuck on the tutorial with following problem. In > the Users.pm file, the login function fails, as the > call to $c->login() gets the following error: > > [Thu Jun 22 15:57:00 2006] [catalyst] [error] Caught exception "Can't

[Catalyst] Problem with 'login' method in tutorial

2006-06-22 Thread Peter Traub
Hello,I'm a Catalyst newbie stuck on the tutorial with following problem. In the Users.pm file, the login function fails, as the call to $c->login() gets the following error: [Thu Jun 22 15:57:00 2006] [catalyst] [error] Caught exception "Can't locate object method "login" via package "tutorial" at

Re: [Catalyst] C::P::PageCache patch for reducing duplicate processing

2006-06-22 Thread Wade . Stuart
[EMAIL PROTECTED] wrote on 06/22/2006 01:37:13 PM: > Toby Corkindale wrote: > > Hi, > > There's a patch attached for Catalyst::Plugin::PageCache. > > (It's not final, but more a "request for comments" on it so far. In > > particular, some better way than using flock()) > > Why not just use

Re: [Catalyst] C::P::PageCache patch for reducing duplicate processing

2006-06-22 Thread Matt S Trout
Toby Corkindale wrote: > Hi, > There's a patch attached for Catalyst::Plugin::PageCache. > (It's not final, but more a "request for comments" on it so far. In > particular, some better way than using flock()) Why not just use pid+tid and a cache key set/get to see if you're the one doing the bui

[Catalyst] C::P::PageCache patch for reducing duplicate processing

2006-06-22 Thread Toby Corkindale
Hi, There's a patch attached for Catalyst::Plugin::PageCache. (It's not final, but more a "request for comments" on it so far. In particular, some better way than using flock()) PageCache's objective is to let you cache pages that are "heavy" to create. However, the potential exists for a page

Re: [Catalyst] TT2 list context and DBIx::Class resultsets: solved?

2006-06-22 Thread Ash Berlin
Mark Blythe wrote: > Hey, Template::Stash::Context is an interesting find. That would > certainly solve the problem, even for situations other than DBIC > result sets. The pod does state that it "adds a little overhead to > each stash call" and that the TT author is "a little wary of applying

Re: [Catalyst] TT2 list context and DBIx::Class resultsets: solved?

2006-06-22 Thread Mark Blythe
Hey, Template::Stash::Context is an interesting find.  That would certainly solve the problem, even for situations other than DBIC result sets.  The pod does state that it "adds a little overhead to each stash call" and that the TT author is "a little wary of applying that to the core default stash

Re: [Catalyst] TT2 list context and DBIx::Class resultsets: solved?

2006-06-22 Thread Matt S Trout
Michele Beltrame wrote: > Hello! > > While investigating the (usual) problem that I always get arrays instead > of ResultSet objects when exploring DBIx::Class related tables in TT2, I > came across the Template::Stash::Context module, which is bundled in TT. > By using a view defined this way: >

Re: [Catalyst] Debugging DBIC inside a catalyst app

2006-06-22 Thread Eric W. Bates
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ash Berlin wrote: > Kevin Old wrote: >> On 6/21/06, Eric W. Bates <[EMAIL PROTECTED]> wrote: >> >>> -BEGIN PGP SIGNED MESSAGE- >>> Hash: SHA1 >>> >>> I have read in the new Catalyst/Manual/Tutorial/CatalystBasics.pod (the >>> whole tutoria

[Catalyst] TT2 list context and DBIx::Class resultsets: solved?

2006-06-22 Thread Michele Beltrame
Hello! While investigating the (usual) problem that I always get arrays instead of ResultSet objects when exploring DBIx::Class related tables in TT2, I came across the Template::Stash::Context module, which is bundled in TT. By using a view defined this way: - package San::View::TT; use stri

Re: [Catalyst] Debugging DBIC inside a catalyst app

2006-06-22 Thread Ash Berlin
Kevin Old wrote: > On 6/21/06, Eric W. Bates <[EMAIL PROTECTED]> wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> I have read in the new Catalyst/Manual/Tutorial/CatalystBasics.pod (the >> whole tutorial is very nice, btw) that you can invoke DBIC's debugging >> inside your cod

[Catalyst] Path handling inconsistencies?

2006-06-22 Thread Mark Blythe
I'm seeing a difference in how paths are handled when running under the test server (myapp_server.pl) vs lighttpd/FastCGI.  For instance, I have an action defined as:sub bar : Regex('^foo/(\d+)/bar/(\d+)$') {  ... }It's supposed to take two numeric ID's in the URL.  If I test with the following URL