Re: [Catalyst] Command-line utility using Controller - examples?

2007-07-17 Thread Ronald J Kimball
Brandon Black wrote: The View should handle everything specific to HTML rendering, and the Controller should really be a very thin translation layer that maps HTTP inputs into View updates and Model calls. In a design laid out like that, your question would become How do I write a utility

[Catalyst] Making Controllers thin and Models thick

2007-07-17 Thread Kee Hinckley
[Was: Re: [Catalyst] Command-line utility using Controller - examples?] On Jul 17, 2007, at 9:21 AM, Ronald J Kimball wrote: (The Controller in this case is probably not as thin as it should be. :) The issue I had is that Catalyst makes it very easy to do the database part of the Model,

RE: [Catalyst] Re: [Catalyst-dev] Announce:Catalyst::Plugin::Authentication 0.10000 Released

2007-07-17 Thread Hartmaier Alexander
The Makefile.PL is missing a requirement for Module::Install! -Alex -Original Message- From: Yuval Kogman [mailto:[EMAIL PROTECTED] Sent: Thursday, July 12, 2007 1:53 PM To: Development of the elegant MVC web framework Cc: The elegant MVC web framework Subject: [Catalyst] Re:

[Catalyst] Re: TT2 + CP::Authentication + DBIC gotcha

2007-07-17 Thread A. Pagaltzis
* Joe Landman [EMAIL PROTECTED] [2007-07-14 01:16]: Nowadays I simply put all the variable creation in a separate section near the beginning. Yuck!, please don’t. At the very least make sure not to declare variables for a wider scope than necessary. Regards, -- Aristotle Pagaltzis //

[Catalyst] Catalyst::Helper passes %T to POSIX::strftime - causes infinite loop under Win32

2007-07-17 Thread bits
Catalyst::Helper::_mk_changes calls POSIX::strftime on line 390: my $time = strftime('%Y-%m-%d %T', localtime time); the %T parameter causes my Activestate Perl 5.8.8 820 to infinite loop. In fact, perl -MPOSIX -e print POSIX::strftime('%T', localtime time); also infinite loops. Nice.

[Catalyst] Re: TT2 + CP::Authentication + DBIC gotcha

2007-07-17 Thread A. Pagaltzis
* Christopher Heschong [EMAIL PROTECTED] [2007-07-14 01:15]: What about: my $vote = $bar and $foo; Seems to pass the test above and is vaguely readable. Is it similarly evil? I think you mean my $vote = $bar $foo; That’s not terribly pretty tho. It conceils intent. In particular it

Re: [Catalyst] Re: [Catalyst-dev] Announce:Catalyst::Plugin::Authentication 0.10000 Released

2007-07-17 Thread Matt S Trout
On Tue, Jul 17, 2007 at 05:33:52PM +0200, Hartmaier Alexander wrote: The Makefile.PL is missing a requirement for Module::Install! No, the dist is missing inc/ And there's already a new version on CPAN that fixes this :) -- Matt S Trout Need help with your Catalyst or DBIx::Class

Re: [Catalyst] Authentication Store: DBC vs DBIx::Class

2007-07-17 Thread Jay K
Hi Jim, The DBIx::Class module is kind-of successor to DBIC. It is much more flexible in terms of what it allows you to do, and it works with the new realms functionality of C::P::Authentication. DBIC doesn't. DBIx::Class allows more complex specification of the user during authentication.

[Catalyst] Authentication Store: DBC vs DBIx::Class

2007-07-17 Thread Jim Spath
I was just curious about peoples opinions of Catalyst::Plugin::Authentication::Store::DBIC vs Catalyst::Plugin::Authentication::Store::DBIx::Class We use DBIx::Class for our model and the DBIC module for authentication currently. I realize that DBIC allows us to use DBIx::Class or

Re: [Catalyst] Catalyst::Helper passes %T to POSIX::strftime - causes infinite loop under Win32

2007-07-17 Thread Matt S Trout
On Tue, Jul 17, 2007 at 12:32:48PM -0400, bits wrote: Catalyst::Helper::_mk_changes calls POSIX::strftime on line 390: my $time = strftime('%Y-%m-%d %T', localtime time); the %T parameter causes my Activestate Perl 5.8.8 820 to infinite loop. Odd, it doesn't cause any AS perl I've seen

Re: [Catalyst] Catalyst::Helper passes %T to POSIX::strftime - causes infinite loop under Win32

2007-07-17 Thread Christopher H. Laco
bits wrote: Catalyst::Helper::_mk_changes calls POSIX::strftime on line 390: my $time = strftime('%Y-%m-%d %T', localtime time); the %T parameter causes my Activestate Perl 5.8.8 820 to infinite loop. In fact, perl -MPOSIX -e print POSIX::strftime('%T', localtime time); also

RE: [Catalyst] Catalyst::Helper passes %T to POSIX::strftime - causes infinite loop under Win32

2007-07-17 Thread bits
I didn't mention it, but I'm running Windows Vista 32-bit. UAC is enabled and this occurs whether running with elevated privileges or not. I should note that I previously had Catalyst running on a Vista laptop with ActiveState 820 and did not have this problem. Not sure if the build environment

Re: [catalyst] conditional loading of Controllers and Models

2007-07-17 Thread Christopher H. Laco
Matt S Trout wrote: On Mon, Jul 16, 2007 at 02:48:50PM +0200, Daniel McBrearty wrote: is there a way to have some C's and M's load into catalyst conditionally? for example, if some config variable is set? Exclude some of them with setup_components config. Or just do it via @INC

Re: [Catalyst] Authentication Store: DBC vs DBIx::Class

2007-07-17 Thread Jonathan Rockway
On Tuesday 17 July 2007 02:02:20 pm Jim Spath wrote: We use DBIx::Class for our model and the DBIC module for authentication currently. Just to clarify, DBIC and DBIx::Class are the same thing. DBIx::Class is a lot to type, so modules that work with DBIx::Class are often called

Re: [Catalyst] Authentication Store: DBC vs DBIx::Class

2007-07-17 Thread Jay K
On Jul 17, 2007, at 6:11 PM, Jonathan Rockway wrote: On Tuesday 17 July 2007 02:02:20 pm Jim Spath wrote: We use DBIx::Class for our model and the DBIC module for authentication currently. Just to clarify, DBIC and DBIx::Class are the same thing. DBIx::Class is a lot to type, so modules

Re: [catalyst] conditional loading of Controllers and Models

2007-07-17 Thread Jason Kohles
On Jul 16, 2007, at 9:26 AM, Christopher H. Laco wrote: Matt S Trout wrote: On Mon, Jul 16, 2007 at 02:48:50PM +0200, Daniel McBrearty wrote: is there a way to have some C's and M's load into catalyst conditionally? for example, if some config variable is set? Exclude some of them with