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:/
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
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
__
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
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
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.
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
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
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
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
iViews Indexes FollowSymlinks
PerlFreshRestart On
use lib '/home/rbroom/projects/myapp/MyApp/lib';
PerlModule MyApp
SetHandler perl-script
PerlHandler MyApp
SetHandler default-h
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
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
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:
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
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?
> &
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
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
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
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
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
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
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/
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
> 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.
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
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
___
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&
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
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
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
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
___
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
_
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. ;
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
35 matches
Mail list logo