Re: [Catalyst] accessing action methods in a TT view

2006-07-13 Thread Rodney Broom
at we aren't supposed to talk between our controller and views like this for reasons like there potentially being more than one view object created during a response. --- Rodney Broom ___ List: Catalyst@lists.rawmode.org Listinfo: http:/

Re: [Catalyst] accessing action methods in a TT view

2006-07-13 Thread Rodney Broom
uld just say something simple like $self->context. Of course, I'd settle for $self->stash. :) --- Rodney Broom ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.m

[Catalyst] Authentication::Store::DBIC works under myapp_server.pl but not Apache/mod_perl

2006-07-26 Thread Rodney Broom
is message. I'm befuddled. btw, I've also tried setting 'user_class' to MyApp::Model::Main::User, MyApp::Schema::Main::User, and User. Only 'Main::User' works, which makes sense as I read the code. --- Rodney Broom __

Re: [Catalyst] Authentication::Store::DBIC works undermyapp_server.pl but not Apache/mod_perl

2006-07-27 Thread Rodney Broom
t config->{auth}->{user_class} is back to the string 'Main::User' instead of the ResultSet that it was when leaving setup_finished() --- Rodney Broom ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailm

Re: [Catalyst] forcing authentication without credentials

2006-07-27 Thread Rodney Broom
work for you. That's what I'm doing: sub signup { # ... $user = create... # Log in the newly created user $c->login($user->login, $user->password); } --- Rodney Broom ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.r

Re: [Catalyst] forcing authentication without credentials

2006-07-27 Thread Rodney Broom
ndefined subroutine for the object. There has to be a way to do this. That, or there needs to be. It seems completely reasonable that somebody would want to authenticate based on their own logic once in a while. --- Rodney Broom ___ List: Catalyst@lists.

Re: [Catalyst] Authentication::Store::DBIC worksundermyapp_server.pl but not Apache/mod_perl

2006-07-27 Thread Rodney Broom
stry Would load Registry.pm (if it is not already) and call it's subroutine "handler". --- Rodney Broom ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://ww

Re: [Catalyst] error using session and authn plug-ins under apache

2006-07-28 Thread Rodney Broom
rver is running a different perl than the shell? ie; one perl might have current versions of things while the other one doesn't. > I do not get this error using the myapp_server.pl server. Clearly myapp_server.pl is working much differently than other environments (at

Re: [Catalyst] Major (for me) problem fixed!

2006-07-28 Thread Rodney Broom
From: "Jonathan Rockway" <[EMAIL PROTECTED]> > However, what should the filtering behavior be? >From perlmod(1): All Perl module files have the extension .pm. The "use" operator assumes this... I suggest that only ".pm&q

Re: [Catalyst] C::P::Session and Object::Signature error

2006-07-28 Thread Rodney Broom
works differently in that environment that it might be an interesting test. --- Rodney Broom ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catal

Re: [Catalyst] Authentication::Store::DBIC works undermyapp_server.pl but not Apache/mod_perl

2006-07-31 Thread Rodney Broom
iViews Indexes FollowSymlinks PerlFreshRestart On use lib '/home/rbroom/projects/myapp/MyApp/lib'; PerlModule MyApp SetHandler perl-script PerlHandler MyApp SetHandler default-h

Re: [Catalyst] Authentication::Store::DBIC works undermyapp_server.pl but not Apache/mod_perl

2006-08-01 Thread Rodney Broom
ice (call stack includes only 'eval's). When I remove the PerlModule line, MyApp.pm doesn't compile at server start. Also, apparently MyApp is getting require'd instead of use'd since my import() never gets called. --- Rodney Broom

Re: [Catalyst] Dispatch problem: built-in vs. Apache13

2006-08-08 Thread Rodney Broom
erver.pl but not under Apache::MP13. I don't have any idea what's up for your situation, but I'd be interested in seeing some of your controller attributes (Path/Regex/etc). --- Rodney Broom ___ List: Catalyst@lists.rawmode.org Listin

Re: [Catalyst] Multilanguage application

2006-08-10 Thread Rodney Broom
being pretty careful in your implementation to get the regexes right. I'll be interested to hear what comes out of this. Good contextual support (language in this case) is something I'm starting to wonder about. --- Rodney Broom ___ List:

[Catalyst] 'require' vs 'use' in Catalyst*

2006-08-10 Thread Rodney Broom
Disliking the fact that require() doesn't call my import(), I'm trying to figure out why Catalyst (and so many other things) use require() over use(). I have to think there's a good reason that just isn't occuring to me. --- Rodney Broom

[Catalyst] SOLUTION: Re: Authentication::Store::DBIC works undermyapp_server.pl butnot Apache/mod_perl

2006-08-10 Thread Rodney Broom
From: "Rodney Broom" <[EMAIL PROTECTED]> > From: "Christopher H. Laco" <[EMAIL PROTECTED]> > > ...but doesn't Apache actually load happen twice at > > startup...once for the config parse, once for the real start? > &

Re: [Catalyst] 'require' vs 'use' in Catalyst*

2006-08-10 Thread Rodney Broom
From: "Joel Bernstein" <[EMAIL PROTECTED]> > On Thu, Aug 10, 2006 at 10:28:47AM -0700, Rodney Broom wrote: > > Disliking the fact that require() doesn't call my import(), I'm trying to > > figure out why Catalyst (and so many other things) use require() o

Re: [Catalyst] 'require' vs 'use' in Catalyst*

2006-08-10 Thread Rodney Broom
From: "Yuval Kogman" <[EMAIL PROTECTED]> > Since Catalyst usually uses OO modules, which don't do imports > anyway, and it usually loads them on behalf of other code, calling > import is not appropriate. OK, I'll tak

Re: [Catalyst] 'require' vs 'use' in Catalyst*

2006-08-10 Thread Rodney Broom
From: "Rodney Broom" <[EMAIL PROTECTED]> > From: "Yuval Kogman" <[EMAIL PROTECTED]> > Where is it being required()'d? Catalyst::Model::DBIC::Schema::new() $schema_class->require > Why not just 'use' this at the top of your mo

Re: [Catalyst] SOLUTION: Re: Authentication::Store::DBIC worksundermyapp_server.pl butnot Apache/mod_perl

2006-08-10 Thread Rodney Broom
From: "Rodney Broom" <[EMAIL PROTECTED]> > I'll have patches for at least Catalyst/Utils.pm and Catalyst.pm coming soon. As promised, two patch files attached. This is a fix to ensure_class_loaded() and the call to it that was causing classes to always get relo

Re: [Catalyst] SOLUTION: Re: Authentication::Store::DBIC worksundermyapp_server.pl butnot Apache/mod_perl

2006-08-12 Thread Rodney Broom
From: "Jonathan Rockway" <[EMAIL PROTECTED]> > Interesting version of diff there. These were diff -c, which patch(1) is happy with. Can you tell me what format (in diff(1)) you're refering to? --- Rodney Broom ___ List: Ca

Re: [Catalyst] SOLUTION: Re: Authentication::Store::DBIC worksundermyapp_server.pl butnot Apache/mod_perl

2006-08-12 Thread Rodney Broom
From: "Matt S Trout" <[EMAIL PROTECTED]> > Where are the tests? :) Hmm, good point. My test was to add debugging and see that load was always happening, even when Class::Inspector->loaded($class) reported true. --- Rodney Broom

Re: [Catalyst] 'require' vs 'use' in Catalyst*

2006-08-12 Thread Rodney Broom
modules I don't need don't hurt my performance in any way? --- Rodney Broom ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/

Re: [Catalyst] 'require' vs 'use' in Catalyst*

2006-08-12 Thread Rodney Broom
From: "Yuval Kogman" <[EMAIL PROTECTED]> > On Sat, Aug 12, 2006 at 14:03:51 -0700, Rodney Broom wrote: > > OK, now you've lost me. Is your point that the loaded modules I > > don't need don't hurt my performance in any way?} > The

Re: [Catalyst] [OT] unified diffs

2006-08-12 Thread Rodney Broom
> The reason for -u diffs... Aha, -u. New patches atached. --- Rodney Broom catalyst_pm.patch Description: Binary data catalyst_utils_pm.patch Description: Binary data ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.

Re: [Catalyst] SOLUTION: Re: Authentication::Store::DBICworksundermyapp_server.pl butnot Apache/mod_perl

2006-08-12 Thread Rodney Broom
ch to the Catalyst-Runtime-5.7001 source tree: patch -Np0 < cat-pack-reloading.patch For me it looked like this: $ ls Catalyst-Runtime-5.7001 $ patch -Np0 < cat-pack-reloading.patch patching file Catalyst-Runtime-5.7001/lib/Catalyst/Utils.pm patching file Catalyst-Runt

Re: [Catalyst] [OT] unified diffs

2006-08-12 Thread Rodney Broom
From: "Jonathan Rockway" <[EMAIL PROTECTED]> > Another thing to watch out for :) is > 80 (or 78) column lines. Is this a functional thing, or stylistic? I'm not seeing anything in the manual related to width. --- Rodney Broom ___

Re: [Catalyst] [OT] unified diffs

2006-08-13 Thread Rodney Broom
From: "Matt S Trout" <[EMAIL PROTECTED]> > Rodney Broom wrote: > >> The reason for -u diffs... > > > > Aha, -u. New patches atached. > > Right, since we ended up about 15 messages deep in a thread, can you re-post > this as a "diff -urP&

[Catalyst] Patch for Catalyst::Utils::ensure_class_loaded()

2006-08-13 Thread Rodney Broom
ded($class) reported true. Apply cat-pack-reloading.patch to the Catalyst-Runtime-5.7001 source tree: patch -Np0 < cat-pack-reloading.patch --- Rodney Broom cat-pack-reloading.patch Description: Binary data ___ List: Catalyst@lists.rawmo

Re: [Catalyst] While the Catalyst CPAN install discussion is stillgoing on....

2006-08-23 Thread Rodney Broom
hitting a mirror that's having a problem. This is a stretch, but it seems odd that CPAN.pm would have this level of problem intrinsically. --- Rodney Broom ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listi

[Catalyst] Model API compliance

2006-09-04 Thread Rodney Broom
n order to work under Catalyst. My guess is that no such document yet exists, and that it would be a back-compat nightmare to state a limited set of what CDBI/DBIx features things like plugins are allowed to use. --- Rodney Broom ___ List: Catalyst@li

Re: [Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread Rodney Broom
How about system("$cmd &") ? If the job can handle it, I tend to agree with the job-queue aproach. This can provide other forward gains like being able to distribute the work over multiple systems. --- Rodney Broom ___

Re: [Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread Rodney Broom
From: "Jonathan Rockway" <[EMAIL PROTECTED]> > > system("$cmd &"); > > I 'system("nohup ... >& /tmp/file &")' > > Please, no scalar system() calls in a web application. Thanks. How come? --- Rodney Broom _

Re: [Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread Rodney Broom
Ah, injection. Yes, you're completely right. My meaning in $cmd was to say, "whatever your command is" Personally, I tend to only only interpret input, as apposed to using it directly. ie; $cmd_to_run = $allowed_commands{$input_cmd_menu_item} ...but now I'm OT. ;

Re: [Catalyst] Where should constraints go

2006-11-03 Thread Rodney Broom
et it all worked out under Catalyst. btw, this general path isn't mine. I got it years ago, pre-catalyst, from another Cat-list person: Mark Blythe. --- Rodney Broom ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/m