Re: [Catalyst] Numerous Authorization queries

2008-11-13 Thread Brian Cassidy
On Thu, Nov 13, 2008 at 7:09 AM, Stuart Dodds [EMAIL PROTECTED] wrote: That means every iteration the check_user_roles() sub is being called to display the link and hence the db is being hit every time. First of all is this behavior supposed to happen? Yes, this is the intended behaviour. The

[Catalyst] Numerous Authorization queries

2008-11-13 Thread Stuart Dodds
Hello, I have a Catalyst app using the general Authentication and Authorization setup which is in most tutorials. The Authentication part is working fine...the user logs in and is stored in the Sessionsorted. The Authorization is also working to the extent that it does what its supposed

Re: [Catalyst] Numerous Authorization queries

2008-11-13 Thread Jason Kuri
Yes, this is the intended behaviour. The data isn't cached in any way. What I've done to circumvent that is to load all of the roles as a hashref in $c-stash-{ user_roles } in my auto sub, and just consult that stash data whenever i need to check roles. Brian, is this really true? Using the

Re: [Catalyst] Making proxy requests cooperate with uri_for

2008-11-13 Thread Dave Rolsky
On Thu, 13 Nov 2008, Matt S Trout wrote: On Mon, Oct 20, 2008 at 12:23:38PM -0700, Ashley wrote: This might be a simple question but I've never had to do it before, Googling for it is difficult, and none of the main docs seems to have the info. I want to run myapp_server.pl script as a proxy

Re: [Catalyst] Numerous Authorization queries

2008-11-13 Thread Brian Cassidy
On Thu, Nov 13, 2008 at 1:59 PM, Jason Kuri [EMAIL PROTECTED] wrote: Brian, is this really true? Using the DBIx::Class store? Things may have changed -- my work-around is quite dated now. It's worth an investigation. -Brian ___ List:

Re: [Catalyst] Making proxy requests cooperate with uri_for

2008-11-13 Thread J. Shirley
On Thu, Nov 13, 2008 at 10:06 AM, Dave Rolsky [EMAIL PROTECTED] wrote: On Thu, 13 Nov 2008, Matt S Trout wrote: On Mon, Oct 20, 2008 at 12:23:38PM -0700, Ashley wrote: This might be a simple question but I've never had to do it before, Googling for it is difficult, and none of the main docs

Re: [Catalyst] Making proxy requests cooperate with uri_for

2008-11-13 Thread J. Shirley
On Thu, Nov 13, 2008 at 10:13 AM, Andy Grundman [EMAIL PROTECTED] wrote: On Nov 13, 2008, at 1:06 PM, Dave Rolsky wrote: On Thu, 13 Nov 2008, Matt S Trout wrote: On Mon, Oct 20, 2008 at 12:23:38PM -0700, Ashley wrote: This might be a simple question but I've never had to do it before,

Re: [Catalyst] Feature Request: Parameter Junctions

2008-11-13 Thread Matt S Trout
On Wed, Oct 22, 2008 at 02:34:19AM -0700, Ovid wrote: There's an idea I've toyed with for Perl 6's CGI.pm and I think it might prove useful for Catalyst: allow junctions for request parameters. Consider the following: # ?sport=football my $params = $c-request-query_parameters; #

Re: [Catalyst] test server running off of ipv6?

2008-11-13 Thread Matt S Trout
On Thu, Oct 23, 2008 at 11:31:39AM -0700, marcus.baker wrote: I'm running off of a linode ubuntu image, ipv6 is compiled into the kernel. When running my app_server.pl, it's binding to ipv4. Via netstat -ntl: tcp0 0 0.0.0.0:30000.0.0.0:* LISTEN

Re: [Catalyst] ANNOUNCE: SimpleDB - Auth configuration made easy

2008-11-13 Thread Matt S Trout
On Mon, Oct 27, 2008 at 11:57:00PM -0600, Jason Kuri wrote: You can get clear passwords with no warnings by dropping SimpleDB for configuration purposes and using a 'standard' auth config that looks like this: Which hides the badness. Frankly I'd like to see -all- of authentication warn on

[Catalyst] test server running off of ipv6?

2008-11-13 Thread marcus baker
I'm running off of a linode ubuntu image, ipv6 is compiled into the kernel. When running my app_server.pl, it's binding to ipv4. Via netstat -ntl: tcp0 0 0.0.0.0:30000.0.0.0:* LISTEN From reading around it seems like there's some situation where linux

Re: [Catalyst] how do i truss an catalyst FCGI worker process?

2008-11-13 Thread Matt S Trout
On Wed, Oct 29, 2008 at 02:50:17PM +0300, Oleg Pronin wrote: Hi. I need to inspect my fcgi process, so i tried to do truss -p fcgi_worker_pid But fcgi process immediately exits when truss just starts. Does anyone know why does it happen and how to get it to work? truss a separate copy

Re: Off Topic: Re: [Catalyst] [Announce] MojoMojo 0.999021 has been released to CPAN

2008-11-13 Thread Matt S Trout
On Sun, Nov 02, 2008 at 10:10:21AM +0200, Ali M. wrote: There is another project by Sebastien Riedel, and its called Mojo, just one Mojo. I think the people working on MojoMojo, should contact Sebastien and work out the naming thing, because it sometimes gets confusing following the news

Re: [Catalyst] test server running off of ipv6?

2008-11-13 Thread Tomas Doran
On 13 Nov 2008, at 20:48, marcus baker wrote: actually, as usual this turned out to be one of a number of problems that seem to only pop up when running on a 64bit os - I dropped back down to 32bit Ubuntu, and the ipv6 is still compiled, in however everything works fine now. I do all my

[Catalyst] Auth::PAM??

2008-11-13 Thread Michael Higgins
I had the idea to make an app that authenticates against PAM. Can this be done? There is Cat:P:A:C:PAM, but [warn] Credential class Catalyst::Authentication::Credential::PAM not found, trying deprecated ::Plugin:: style naming. [error] THIS IS DEPRECATED:

Re: [Catalyst] Auth::PAM??

2008-11-13 Thread Tomas Doran
On 14 Nov 2008, at 00:28, Michael Higgins wrote: I had the idea to make an app that authenticates against PAM. Can this be done? There is Cat:P:A:C:PAM, but [warn] Credential class Catalyst::Authentication::Credential::PAM not found, trying deprecated ::Plugin:: style naming. [error] THIS

Re: [Catalyst] Auth::PAM??

2008-11-13 Thread J. Shirley
On Thu, Nov 13, 2008 at 4:28 PM, Michael Higgins [EMAIL PROTECTED] wrote: I had the idea to make an app that authenticates against PAM. Can this be done? There is Cat:P:A:C:PAM, but [warn] Credential class Catalyst::Authentication::Credential::PAM not found, trying deprecated ::Plugin::

Re: [Catalyst] test server running off of ipv6?

2008-11-13 Thread marcus baker
2008/11/13 Tomas Doran [EMAIL PROTECTED]: On 13 Nov 2008, at 20:48, marcus baker wrote: actually, as usual this turned out to be one of a number of problems that seem to only pop up when running on a 64bit os - I dropped back down to 32bit Ubuntu, and the ipv6 is still compiled, in however

Re: [Catalyst] Auth::PAM??

2008-11-13 Thread Michael Higgins
On Thu, 13 Nov 2008 16:45:30 -0800 J. Shirley [EMAIL PROTECTED] wrote: On Thu, Nov 13, 2008 at 4:28 PM, Michael Higgins [EMAIL PROTECTED] wrote: I had the idea to make an app that authenticates against PAM. Can this be done? There is Cat:P:A:C:PAM, but but the OP is a moron. Yes,