On Mon, Dec 19, 2005 at 10:06:34PM -0600, Peter Speltz wrote:
> On 12/19/05, Kieren Diment <[EMAIL PROTECTED]> wrote:
> > Is there an easy way to temporarily override the value for
> > rows_per_page for a particular method?
> >
>
> I've wanted to know this same thing -- how to go about overriding a
> config for just current request. I have not needed it bad enough to
> spend any time on it. I think with 2.11 there will be some hooks to
> make things like this easy . For now i am thinking something like
> in your driver after all configs are done, deep copy 'config' to
> 'default_config'. Then in a PerlCleanup Handler, deep copy
> 'default_config' to 'config'.
local MyApp->config->{rows_per_page} = 150;
<carry on coding>
No?
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Maypole-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-users