Re: [Catalyst] Non-real world irrelevant benchmarks

2006-11-17 Thread Michael Reece
fwiw, earlier this week i ran some simple 'ab -n 100 -c 10' benchmarks comparing an existing complex Mason site with the same site sitting behind a simple Catalyst front end. the results showed nearly identical performance, with Mason-only winning slightly for 100 requests, and

[Catalyst] pre-loading with PerlModule

2006-11-22 Thread Michael Reece
If i leave out (from my httpd.conf) PerlModule MyApp then everything is loaded at the first request. i would prefer to preload so the first request is faster, but if i add the PerlModule directive to the apache (Apache/1.3.36 (Unix) mod_perl/1.29) config, then i get

Re: [Catalyst] pre-loading with PerlModule

2006-11-22 Thread Michael Reece
thanks, perrin! that works! do you know why this makes a difference? On Nov 22, 2006, at 10:04 AM, Perrin Harkins wrote: Michael Reece wrote: PerlModule MyApp Try this instead: Perl use MyApp; /Perl Or do that in a separate startup.pl script called from httpd.conf

Re: [Catalyst] question from tutorial - does creating HTML in a controller using HTML::Widget violate MVC?

2006-12-06 Thread Michael Reece
On Dec 5, 2006, at 6:06 PM, John Siracusa wrote: My stance has always been that I don't mind code in templates so long as the sole purpose of that code is to layout and format the data. IOW, a view should never retrieve, create, or modify data. It should just move around and format

Re: [Catalyst] Catalyst::Controller::FormBuilder config problem

2007-01-02 Thread Michael Reece
On Jan 2, 2007, at 7:28 AM, Matt S Trout wrote: On 21 Dec 2006, at 18:05, Michael Reece wrote: be wary of putting your base controller class in the MyApp/ Controller/ directory, because catalyst will load it as a controller itself. which sucks if you want to put default inheritable

Re: [Catalyst] 404 Not Found

2007-01-02 Thread Michael Reece
will things break if i delete the Makefile.PL and define a home in the config? if so, then my problem is solved! On Jan 2, 2007, at 9:26 AM, Chisel Wright wrote: On Tue, Jan 02, 2007 at 09:18:54AM -0800, Michael Reece wrote: we do our best to let you organise stuff how -you- want to rather

[Catalyst] Catalyst::Controller::BindLex RECIPE for :Param

2007-01-02 Thread Michael Reece
i am trying to follow the recipe mentioned here: http://search.cpan.org/~nuffin/Catalyst-Controller-BindLex-0.03/lib/ Catalyst/Controller/BindLex.pm#RECIPES __PACKAGE__-config-{bindlex}{Param} = sub { $_[0]-req- params }; after the obvious s/=/=/, i put this line in MyApp/Controller.pm

Re: [Catalyst] Catalyst::Controller::BindLex RECIPE for :Param

2007-01-02 Thread Michael Reece
, 2007, at 10:47 AM, Michael Reece wrote: i am trying to follow the recipe mentioned here: http://search.cpan.org/~nuffin/Catalyst-Controller-BindLex-0.03/lib/ Catalyst/Controller/BindLex.pm#RECIPES __PACKAGE__-config-{bindlex}{Param} = sub { $_[0]-req- params }; after the obvious s

[Catalyst] RFC $c-uri_to

2007-01-03 Thread Michael Reece
$c-uri_for() is great and all, but i usually am more interested in getting a uri for an action rather than a uri to a template (or public path). (incidentally, i feel uri_for would be better named uri_to, and the sub below named uri_for, but i digress.) the following code is what i have

Re: [Catalyst] RFC $c-uri_to

2007-01-03 Thread Michael Reece
On Jan 3, 2007, at 12:04 PM, Ash Berlin wrote: Michael Reece wrote: $c-uri_for() is great and all, but i usually am more interested in getting a uri for an action rather than a uri to a template (or public path). (incidentally, i feel uri_for would be better named uri_to, and the sub

Re: [Catalyst] CALLING FOR VCS AND EDITOR REGEXES

2007-01-26 Thread Michael Reece
here's one [.]_.*[.]pm On Jan 26, 2007, at 2:27 PM, Matt S Trout wrote: Bored now. I've suggested to a dozen people we should put together a list of common VCS and editor file matches to submit back to Module::Pluggable as default skips. So far, I've had lots of complaints and two

Re: [Catalyst] O?Reilly might yet be interested after all

2007-02-06 Thread Michael Reece
On Feb 6, 2007, at 6:55 AM, Matt S Trout wrote: On 6 Feb 2007, at 14:30, Fernan Aguero wrote: The other could be more annoying for a beginner: you have to learn a new set of syntax rules to use TT. Even if there's already another book about TT, you might want to at least skim through some

[Catalyst] populating stash via action attributes

2007-02-14 Thread Michael Reece
i am trying to do something along the lines of: sub foo : Local HelloWorld { my ($self, $c) = @_; $c-res-body( $c-stash-{hello} ); # was already set to 'world' because of attribute HelloWorld } is this possible? any tutorials around that deal with such things?

Re: [Catalyst] populating stash via action attributes

2007-02-14 Thread Michael Reece
-{hello} = 'world'; return $self-NEXT::execute(@_); } On Feb 14, 2007, at 4:40 PM, Michael Reece wrote: i am trying to do something along the lines of: sub foo : Local HelloWorld { my ($self, $c) = @_; $c-res-body( $c-stash-{hello} ); # was already set to 'world' because of attribute

Re: [Catalyst] Regex -- optional index.html

2007-03-02 Thread Michael Reece
@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/ --- michael reece :: software engineer :: [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail

Re: [Catalyst] Catalyst::Log::Log4perl branch

2007-03-02 Thread Michael Reece
this brings up an interesting difference in side-effects of Catalyst::Log-error() and Log::Log4perl-error(). in the course of trying to integrate catalyst logging with other existing Log4Perl loggers in the codebase, i had tried first setting catalyst's logger to be the global logger,

Re: [Catalyst] Template Engine

2007-03-13 Thread Michael Reece
you will find that most here use Template Toolkit, but i prefer HTML::Mason, because i can do really interesting things with an OO- based templating system. but embedding perl into HTML may not be what you mean by promotes good practices .. mason is pretty agnostic in that regard, but you

Re: [Catalyst] Root.pm $c-detach() does not detach?

2007-04-03 Thread Michael Reece
On Apr 3, 2007, at 9:18 AM, Luis Azevedo wrote: Hi All, In Root.pm, auto action I am trying to break the execution of chain of Actions. To be more exact, whenever I detect I loose connection to a socket or cookie session, I want to redirect the user to a login action, not rendering

Re: [Catalyst] A View that may include elements optionally returnedfrom other funcs

2007-04-25 Thread Michael Reece
___ 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/ --- michael reece :: software engineer :: [EMAIL

Re: [Catalyst] perl -d myapp_server.pl : how ?

2007-04-27 Thread Michael Reece
___ 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/ --- michael reece :: software engineer :: [EMAIL PROTECTED

Re: Redirects // Re: [Catalyst] Re: forwarding to chained actions

2007-04-27 Thread Michael Reece
/ catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/ --- michael reece :: software engineer :: [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http

Re: [Catalyst] Re: Shoot out -- Catalyst / RoR / Other MVC apps --

2007-05-11 Thread Michael Reece
now the next time this happens, googling for cpantools.org will find this thread and all will be clear! On May 11, 2007, at 4:40 AM, A. Pagaltzis wrote: * Daniel Hulme [EMAIL PROTECTED] [2007-05-10 23:50]: No, but on finding it not working my first guess was that he mistyped it, so I tried

Re: [Catalyst] Re: Persistent login

2007-05-16 Thread Michael Reece
___ 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/ --- michael reece :: software engineer :: [EMAIL PROTECTED

Re: [Catalyst] ActiveRecord for Perl

2007-05-22 Thread Michael Reece
On May 22, 2007, at 7:58 AM, Matt S Trout wrote: item = user.items.find(params[:id]) my $item = $user-items-find($item_id); new_item = user.items.create!(params[:item]) my $new_item = $user-items-create(\%item_info); that's great; i thought i had recalled something similar, but

Re: [Catalyst] Lightweight error/messages reporting to templates

2007-05-23 Thread Michael Reece
/ --- michael reece :: software engineer :: [EMAIL PROTECTED] ___ 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

Re: [Catalyst] Forms generation

2007-06-14 Thread Michael Reece
On Jun 14, 2007, at 9:20 AM, Bill Moseley wrote: On Thu, Jun 14, 2007 at 11:34:52AM +0200, Leo Cacciari wrote: As I see it, the controller should tell the view 'I want the user entering the following data, each one with its data-type, and obeying the following constraints. I take that a

Re: [Catalyst] httpd.conf.

2007-06-15 Thread Michael Reece
On Jun 15, 2007, at 8:11 AM, Kyoko,Shikamata wrote: Hi, I'd like to execute other cgi program at /cgi-bin/. I set the following to httpd.conf. But, I cannot execute cgi. Please let me know my mistake . - Perl use lib qw( /var/www/MyApp/lib ); /Perl PerlModule MyApp Location /

Re: [Catalyst] iterating ResultSet in controller vs. template

2007-06-19 Thread Michael Reece
either use iterators in both controller and template, or use array- refs in both, but don't try to use both at once with only one variable. On Jun 19, 2007, at 12:09 PM, John Goulah wrote: On 6/19/07, Michael Reece [EMAIL PROTECTED] wrote: i believe you are getting an array-ref because you

Re: [Catalyst] Announce: Last Call - RC of C::P::Authentication

2007-07-09 Thread Michael Reece
@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/ --- michael reece :: software engineer :: [EMAIL PROTECTED

Re: [Catalyst] Announce: Last Call - RC of C::P::Authentication

2007-07-09 Thread Michael Reece
that i shouldn't need to make any changes for backwards compatibility..? On Jul 9, 2007, at 9:46 AM, Michael Reece wrote: this does break my custom authentication. i am still investigating why.. On Jul 7, 2007, at 12:50 PM, Jay K wrote: Hey all, Big news! With the most excellent

Re: [Catalyst] Announce: Last Call - RC of C::P::Authentication

2007-07-09 Thread Michael Reece
, Michael Reece wrote: the short answer is it does not call my store's get_user method, despite __PACKAGE__-config( authentication = { store = 'MyApp::Plugin::Authentication::DBI::User'} ); the error i get is: [debug] find_user: unable to locate a store matching the requested realm

Re: [Catalyst] html::prototype syntax in new Cat version

2007-07-10 Thread Michael Reece
i may be the exception, but i have no hesitation in using perl (or other templating languages) to generate html, javascript, css, or even more perl. it may be harder to debug, but the productivity gains are worth it. i think RoR's rjs stuff is really keen, too. On Jul 10, 2007, at 10:08

Re: [Catalyst] firing a POST method with Test::WWW::Mechanize

2007-08-06 Thread Michael Reece
://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/ catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/ --- michael reece :: software engineer :: [EMAIL PROTECTED] ___ List: Catalyst@lists.rawmode.org

Re: [Catalyst] Method to overload per request

2007-08-09 Thread Michael Reece
by several times per page load are you referring to multiple requests to render one page? (ie, if you have your css/js/etc served through your app) On Aug 9, 2007, at 8:04 AM, John Lifsey - Contractor - wrote: Is there a method in C::Req (or any other part of Cat) that I can overload