Re: [Catalyst] Deep Recusion error

2012-05-31 Thread Kenneth S Mclane
Well it returns "1" when I change it to that. Dimitar Petrov wrote on 05/31/2012 04:00:31 PM: > From: > > Dimitar Petrov > > To: > > The elegant MVC web framework > > Date: > > 05/31/2012 04:02 PM > > Subject: > > Re: [Catalyst] Deep Recusion error > > Hello Kenneth, > > actually many

Re: [Catalyst] Deep Recusion error

2012-05-31 Thread Dimitar Petrov
Hello Kenneth, actually many_to_many helpers are not considered as relationships. It's just a helper. What are you trying to achieve? Get all roles for given user? Does $c->model('authdb::User')->find({username => $username})->roles do the trick? Cheers, Dimitar On Thu, May 31, 2012 at 10:38 PM,

[Catalyst] Deep Recusion error

2012-05-31 Thread Kenneth S Mclane
Ok, I found that the recursion error is happening when trying to store the role in the session. my $roles = $c->model('authdb::User')->find( { 'username' => $username }, { prefetch => 'roles', columns => 'roles.role',

[Catalyst] Deep Recursion error and then connection reset

2012-05-31 Thread Kenneth S Mclane
I am getting this error "Deep recursion on subroutine "Storable::nfreeze" at /usr/local/share/perl5/DBIx/Class/ResultSourceHandle.pm line 95." in my debug output and then the connection is reset after the authentication while getting the user role with this sql: SELECT role.role, user.id, user.

[Catalyst] Catalyst/Starman server Cache::FastMmap problems when running with --background option on CentOS 6

2012-05-31 Thread Robert Rothenberg
I've changed a Catalyst application to use FastMmap session stores instead of Files, because I am using OpenID which already requires it. All tests pass, and the server runs fine manually: sudo -u myappuser /opt/perl/bin/perl -I /opt/myapp/lib/perl5 /opt/myapp/bin/myapp_server.pl -d --host 127.

[Catalyst] Invitation to the "Moving to Moose" hackathon 2012

2012-05-31 Thread Salve J Nilsen
Hei, #catalyst! :) I hope I don't intrude with this (somewhat) tangential invitation, but I assume there might be one or two people on the Catalyst mailing list who might consider coming the hackathon... --->8 Oslo Perl Mongers are

Re: [Catalyst] $c->user and session questions

2012-05-31 Thread Kenneth S Mclane
I found that I can simply reference $c->user->hrfirstname. As to the role info, that comes from a different source (an sqlite db just for this info). I found that $c->session(role => $role); works to insert the value in the session, so I just need to pull the data from the table into the varia

Re: [Catalyst] $c->user and session questions

2012-05-31 Thread Tomas Doran
On 31 May 2012, at 14:00, Kenneth S Mclane wrote: > I have an LDAP server authenticating my users. The look up returns a ton of > fields in a hash. My questions are as follows: > > 1. What happens to this data/information? Is it stored in the $c->user > object? Yes > 2. If it is, how do I

[Catalyst] $c->user and session questions

2012-05-31 Thread Kenneth S Mclane
I have an LDAP server authenticating my users. The look up returns a ton of fields in a hash. My questions are as follows: 1. What happens to this data/information? Is it stored in the $c->user object? 2. If it is, how do I access it? 3. Is there a simple way to look at what is stored in the