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 -
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,
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
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
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
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
* 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
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
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