Re: [Catalyst] YAML vs. *

2006-06-09 Thread Brian Cassidy
> -Original Message- > Anyway, I'm starting to think that the best way to handle this issue > would be to make ConfigLoader smart enough to load anything you throw > at it, maybe with some filename/extension conventions. So, if it finds > "myapp.yml" that's what it loads, the same for "myap

Re: [Catalyst] YAML vs. *

2006-06-09 Thread Brian Cassidy
Nislon, > -Original Message- > I really never bothered reading ConfigLoader's docs because it is one > of those things that really DWIM in Catalyst. ...Another satisfied customer. :) > But now I really don't get what's the point of this "default format" > discussion if ConfigLoader does

Re: [Catalyst] YAML vs. *

2006-06-12 Thread Brian Cassidy
Mark, > -Original Message- > On a related note, I discovered the hard way today that ConfigLoader > does not support the short forms of Model (M), View (V), and > Controller (C) as nicely as the verbose ones. For instance, this does > not work: For what it's worth, I've fixed up ConfigLo

Re: [Catalyst] newbie YAML question

2006-07-12 Thread Brian Cassidy
Hey, > -Original Message- > The docs say it should be __path_to('pathpart1/pathpart2')__ with single > quotes but that didn't work for me, > the quotes became part of the string. Does anyone know if the docs are > just a bit off or is there something > wrong with my system? --john Docs

Re: [Catalyst] ::Model::SomeTable->some_method() problem

2006-07-15 Thread Brian Cassidy
Chisel Wright wrote: > I just hadn't had the tuits to slap the dev release on my laptop. It > kinda sounds like I'm the only Pg/Model::DBIC user out there at the > moment ... :) We've checked in a potential fix (+ tests) [1]. Please download it and test it :) -Brian [1] http://dev.catalyst.perl.

Re: [Catalyst] Bug in uri_for()

2006-07-15 Thread Brian Cassidy
Paul Makepeace wrote: > I consider at the least a usability bug - consider, > > $param = { url => $c->req->base } > > [% c.uri_for('/foo', param) %] > > Would you reasonably expect that to break? Especially considering it > used not to, 5.66. > > Not only that, uri_for() seem to break if its fi

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

2006-07-31 Thread Brian Cassidy
Matt S Trout wrote: > Note the '%$config' there. In MyApp, > > http://search.cpan.org/~mramberg/Catalyst-Runtime-5.7001/lib/Catalyst.pm#%24c-%3Esetup_components > > __PACKAGE__->config({ >setup_components => { only => qr/(^|::)\w+$/ } > }); > > will fix this without requiring a patch to anythin

Re: [Catalyst] Multilanguage application

2006-08-10 Thread Brian Cassidy
Hi Renaud, Renaud Drousies wrote: > Hello, > > I am trying to figure out what would be the best way to have a > multilanguage support in a catalyst application. > > I thought using a url-based method might be better since this site could > be visited by people that do not accept cookies, or do not

[Catalyst] [ANNOUNCE] Catalyst::Plugin::ConfigLoader 0.13

2006-08-25 Thread Brian Cassidy
Hello All, I've just put out a new release of the ConfigLoader plugin. Nothing on the surface has changed. Underneath, however, the guts of the config file loading has been extracted out into a separate module: Config::Any. Hopefully other apps and/or modules will find this new package useful.

Re: [Catalyst] Checking client browsers, best approach?

2006-09-20 Thread Brian Cassidy
Hi Ryan, Ryan wrote: > OK, here is what I need to do. I'm writing a reservation system for a > hotel and I have some cool features in mind for the process but they > require javascript and "newer" browsers. What I was planning on doing is > creating the bare-bones pages that work in any browser,

Re: [Catalyst] Configuring Catalyst::Model::DBIC::Schema from YAML

2006-09-28 Thread Brian Cassidy
Jon Warbrick wrote: > Can a Catalyst::Model::DBIC::Schema model be configured from a YAML > file via Catalyst::Plugin::Config::YAML? If so, how? Apologies if it's in > the documentation somewhere, but if so I've yet to find it... > > Jon. > > package MyApp; use Catalyst qw( ConfigLoader ); #

Re: [Catalyst] DBIC::Schema [and schema::loader] from YAML

2006-09-28 Thread Brian Cassidy
[EMAIL PROTECTED] wrote: > While we're on the subject, lets assume that MySchema is > 'myapp::SchemaLoader::foo. > > How do I make sure that my SchemaLoader can see the config when it > tries to execute > __PACKAGE__->connection? > > It isn't seeing the Model::MyModel connect_info, admonishing me

[Catalyst] [ANNOUNCE] DBIx-Class-0.07003

2006-11-16 Thread Brian Cassidy
elated bugs - Made new/update/find handle 'single' rel accessor correctly - Fix NoBindVars to be safer and handle non-true bind values - Don't blow up if columns_info_for returns useless results - Documentation updates Enjoy! -Brian Cassidy

Re: [Catalyst] model connect info to come from YAML configuration file

2006-12-05 Thread Brian Cassidy
Hermida, Leandro wrote: Inside MyApp::Model::MyAppDB: use strict; use base 'Catalyst::Model::DBIC::Schema'; __PACKAGE__->config( schema_class => 'MyAppDB', connect_info => [ 'dbi:SQLite:myapp.db', '', '', { AutoCommit => 1 }, ], ); Mode

Re: [Catalyst] TIP: resolv uri based on delta params

2006-12-13 Thread Brian Cassidy
N. Arakawa wrote: > I often make a data-table view, which links to similar views with > small parameter changes, such as paging or sorting order. > > In this case, making a link URI based on 'delta' information is handy. > > In Application Code: > sub uri_delta{ > my($self,@arg)[EMAIL PROTECT

Re: [Catalyst] TIP: resolv uri based on delta params

2006-12-13 Thread Brian Cassidy
N. Arakawa wrote: I just not notice 'uri_with'. I only search around the 'uri_for' (Ctalalyst.pm) not a in Reauest.pm to find a this kind of utility. What is a recommended ideom in TT-Template for 'uri_with'? http://use.perl.org/~LTjake/journal/31056 to summarize: Next Page -Brian _

Re: [Catalyst] Re: Strange (error)? when trying to load 20 classes or more on DBIx::Class::Schema

2006-12-14 Thread Brian Cassidy
Juan Miguel Paredes wrote: Hi, folks! We've narrowed the problem: when there are sufficient classes loaded in the DBIC Schema, the Authentication configuration turns out wrong: #Confianza.pm (Main Module) __PACKAGE__->config->{authentication}{dbic} = { user_class => 'Confianza::Mo

Re: [Catalyst] TIP: resolv uri based on delta params

2006-12-15 Thread Brian Cassidy
Dan Dascalescu wrote: to summarize: Next Page Funny that Catalyst::Enzyme reinvented the wheel, too: http://search.cpan.org/dist/Catalyst-Enzyme/lib/Catalyst/Enzyme/CRUD/View.pm#%24c-%3Ethis_request_except(%25new_params) Not exactly, uri_with() didin't arrive until version 5.67, on April

Re: [Catalyst] Return multiple values from a forward?

2007-01-16 Thread Brian Cassidy
Ryan Detzel wrote: Can it be done, I keep getting weird results. I want to do my ($val1,$val2) = $c->forward('test'); sub test : Private { The return value of a forward isn't really something you should rely on, but, if you must, you can return an array reference: my ($val1,$val2) = @{ $c

Re: [Catalyst] chained actions, knowing if current action is an endpoint or not

2007-02-02 Thread Brian Cassidy
Matt S Trout wrote: On 1 Feb 2007, at 17:37, John Napiorkowski wrote: Hmm, interesting point. I'm going to go and try writing something that trys to modify the ActionContainer and see what happens! --john You'd be better screwing with $c->action, I think. Something like if ($c->stack->[-1]

Re: [Catalyst] insecure deps with Module::Pluggable::Fast

2007-02-26 Thread Brian Cassidy
Daniel McBrearty wrote: [Mon Feb 26 20:28:50 2007] [error] Couldn't load "Catalyst::Plugin::ConfigLoader::YAML", "Insecure dependency in require while running with -T switch at /usr/local/lib/perl5/site_perl/5.8.8/Module/Pluggable/Fast.pm line 82.\n" at /usr/local/lib/perl5/site_perl/5.8.8/Module

Re: [Catalyst] insecure deps with Module::Pluggable::Fast

2007-02-26 Thread Brian Cassidy
Daniel McBrearty wrote: one without a version string - but when I to "cpan C::P::C::Y:" it says its up to date ... that explains why it didn't even get on the one box. still not sure why the taint error though - guess I can remove M::P::F though, see if that fixes things You're looking at the

Re: [Catalyst] Merging configs

2007-03-09 Thread Brian Cassidy
Bill Moseley wrote: On Thu, Mar 08, 2007 at 05:25:55PM -0500, Christopher H. Laco wrote: Catalyst config support a 'local' config file in addition to the regular one. I'm not sure on the exact file name, but I think it's myapp_local.yml That's also a shallow merge, IIRC. It just calls $c->con

[Catalyst] Re: PathPrefix

2007-03-13 Thread Brian Cassidy
Robert 'phaylon' Sedlacek wrote: You can chain your action only to other actions or to the root, not to namespaces. The PathPart attribute controls how the path is built visibly. There is a :PathPrefix implementation that does what you want somewhere in Catalyst's SVN, but I don't know when it

Re: [Catalyst] C::C::FB and captchas or similar

2007-03-19 Thread Brian Cassidy
Hi Joe, Joe Landman wrote: Two part question. Has anyone played with captchas in conjunction with C::C::FB? Second part: should I be looking at different technology rather than captchas? A technique i recently saw was to add an input to your form with a usual sounding name (like "subject

Re: [Catalyst] RFC: Chained actions with PathPart('.')

2007-03-22 Thread Brian Cassidy
Brian Kirkbride wrote: Hello all, The one thing that has been bothering me is that to start a chain in some controller, say MyApp::C::Admin::Services you would need to declare: sub get_id : Chained('/') : PathPart('/admin/services') : CaptureArgs(1) { # stash the id or do some lookup

Re: [Catalyst] fastcgi configuration problems

2007-03-23 Thread Brian Cassidy
Ian Docherty wrote: FastCgiExternalServer /tmp/timesheet.fcgi -socket /tmp/timesheet.socket ServerName timesheet.mydomain.com Alias / /tmp/timesheet.fcgi Just for kicks try: Alias / /tmp/timesheet.fcgi/ (note trailing slash) -Brian ___

Re: [Catalyst] Catalyst Engine Start-up Flag?

2007-04-27 Thread Brian Cassidy
Lee Goddard wrote: Sorry: I meant when the server starts, it seems to attempt to call 'new' for every *.pm in MyApp::Model::* : Hopefully I recall how this works... Every Model::*, Controller::*, View::* (plus their short-names for back-compat) are instantiated via setup_components (see Cata

Re: [Catalyst] $c->uri_for with proxy (heavy loaded projects).

2007-05-16 Thread Brian Cassidy
Oleg Pronin wrote: Does anyone can advice a good solution ? Read: http://search.cpan.org/dist/Catalyst-Runtime/lib/Catalyst.pm#PROXY_SUPPORT -Brian ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst S

Re: [Catalyst] Catalyst without template

2007-05-17 Thread Brian Cassidy
Dmitri Pissarenko wrote: $c->res->body = 'Hello ' . $name . ', welcome to the world of Dojo!\n'; Instead do: $c->res->body( 'Hello' ... ); -Brian ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst

Re: [Catalyst] debug mode

2007-06-05 Thread Brian Cassidy
Daniel McBrearty wrote: FWIW I just turn debug off, and do export MYAPP_DEBUG=1; script/myapp_server.pl -r; the -d option is so much easier to type :) script/myapp_server.pl -d -r -Brian ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists

[Catalyst] [ANNOUNCE] Catalyst::Plugin::I18N 0.06

2007-07-19 Thread Brian Cassidy
Hey Y'all, I've done a little bit of maintenance to the I18N plugin. Version 0.06 will hit CPAN soon. The changes are as follows: - re-org distro - switch to Module::Install - added language_tag() method - pod fixes If you use this plugin and you have suggestions or comments, I'd love to hea

Re: [Catalyst] Problems forwarding to view

2007-08-02 Thread Brian Cassidy
Adeola Awoyemi wrote: # from MyApp::Controller::Root sub end : Private { my ( $c, $self ) = @_; $c->forward( $c->view('XSLT') ); } try: my( $self, $c ) = @_; -Brian ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mai

[Catalyst] Re: [Catalyst-dev] Re: Patches for Catalyst::Plugin::ConfigLoader, Config::All and Config::All::General

2007-08-23 Thread Brian Cassidy
Hey All, Config::Any 0.08 and Catalyst::Plugin::ConfigLoader 0.16 have hit the CPAN. Changes: Config::Any: 0.08 Thu Aug 23 2007 pass config options to each parser fix for loading the same perl config twice (RT #28812) Catalyst::Plugin::ConfigLoader: 0.16 Thu Aug 23 2007 - separ

Re: [Catalyst] Attribute::Handlers wont work in own classes under catalyst

2007-08-29 Thread Brian Cassidy
Felix Antonius Wilhelm Ostmann wrote: we have build some classes with Attribute::Handlers (was inspired from Attribute::Property) This works realy fine! after a few tests we gone use this classes under catalyst ... and ... dont work :-/ under catalyst our classes dont use Attribute::Handlers

Re: [Catalyst] App Deployment - Apache, FastCGI, init.d

2007-09-20 Thread Brian Cassidy
Mitchell Jackson wrote: Does anybody have a better init script than the one below for handling the fastcgi processes? I'm probably missing something obvious X.X I've been generating an init.d script with Catalyst::Helper::FastCGI::ExternalServer [1] for our Ubuntu servers without issue. -B