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]

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 visit

[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] 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 for

[Catalyst] [ANNOUNCE] DBIx-Class-0.07003

2006-11-16 Thread Brian Cassidy
/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 ___ List: Catalyst

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 }, ], );

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 PROTECTED];

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

2006-12-15 Thread Brian Cassidy
Dan Dascalescu wrote: to summarize: a href=[% c.request.uri_with( page = pager.next_page ) %]Next Page/a 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

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] eq

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

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

[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

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 VirtualHost *:80 ServerName timesheet.mydomain.com Alias / /tmp/timesheet.fcgi /VirtualHost 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

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

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:

[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

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:

[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 -

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.