[Catalyst] Advice needed on porting 5.7 plugin (monkeypatches Cat::Request)

2009-08-21 Thread Pedro Melo
Hi, I need some advice about an old 5.7 plugin that I came across at a client site. The plugin wraps CGI::Expand to deal with hierarchical parameters (see expand_cgi export in CGI::Expand docs). They want to migrate the app to 5.8 and this plugin was doing some nasty stuff -

Re: [Catalyst] Advice needed on porting 5.7 plugin (monkeypatches Cat::Request)

2009-08-21 Thread Florian Ragwitz
On Fri, Aug 21, 2009 at 11:37:00AM +0100, Pedro Melo wrote: Reading through the docs, I see that I can subclass the Catalyst::Request class and use the $c-request_class to setup the new one. I've done that like this: It's probably better to create a role to apply to the request class and,

Re: [Catalyst] DBI SQLite driver missing after Catalyst update.

2009-08-21 Thread Matt Whipple
I've tried both formulations of the config string __PACKAGE__-config( schema_class = 'wppig::Schema', connect_info = { dsn = 'dbi:SQLite:wppig.db3', }, ); __PACKAGE__-config( schema_class = 'wppig::Schema', connect_info = 'dbi:SQLite:wppig.db3', ); and even from

Re: [Catalyst] Bug with re-occuring nested related tables with CP FormFu?

2009-08-21 Thread Ascii King
You are missing the counter_name and new_rows_max for the repeatables. Look at this bit of YAML that Moritz gave me. You might also look at the empty_rows option. Your problem is the counter_name, though. - type: Hidden name: count constraints: - Required - type: Repeatable

Re: [Catalyst] Advice needed on porting 5.7 plugin (monkeypatches Cat::Request)

2009-08-21 Thread Tomas Doran
Pedro Melo wrote: * is it possible for a plugin, at setup time, to set the request_class()? Yes. before setup_finalize = sub { my $self = shift; $self-request_class(New::Request::Class); }; * is there a better way? Yes. Make a request class role, then use CatalystX::RoleApplicator to

[Catalyst] [ANNOUNCE] Catalyst-Runtime-5.80008

2009-08-21 Thread Tomas Doran
The Catalyst core team is pleased to announce the availability of the latest maintenance release of Catalyst-Runtime, version 5.80008. A number of bugs have been fixed, and a load of small but useful features have been added. A full changelog is included below. Thanks to everybody who

Re: [Catalyst] DBI SQLite driver missing after Catalyst update.

2009-08-21 Thread Jonathan Rockway
* On Thu, Aug 20 2009, Collin Condray wrote: stuff So the debugging technique you should use is to find the message that's printing HASH(0x123456), and then use DDS or something to actually dump that hash. (Carp::cluck is also very helpful here.) Then you can see where you are and what data is

[Catalyst] [ANNOUNCE] Catalyst-Runtime-5.80009

2009-08-21 Thread Tomas Doran
Unfortunately, Catalyst-Runtime 5.80008 introduced a serious regression. Catalyst-Runtime 5.80009 has just been uploaded, which corrects and adds tests for the issue, with no other changes. The Changelog is included below as always. Cheers t0m Bug fixes: - Fix and add tests for

[Catalyst] [ANNOUNCE] Catalyst-Runtime-5.80010

2009-08-21 Thread Florian Ragwitz
Apparently the issue fixed in 5.80009 wasn't the only regression introduced in 5.80008. Catalyst-Runtime 5.80010 has just been uploaded, which corrects and adds tests for yet another issue, with no other changes. The Changelog is included below as always. Cheers rafl Bug fixes: - Fix