From ce73ea8b848572d33ad852e6b37f1c59ec5f9fc1 Mon Sep 17 00:00:00 2001 From: Aaron Trevena Date: Fri, 29 Jun 2007 15:08:44 +0000 Subject: [PATCH] additional, request_options and view_options attributes of Maypole::Config are initialised with hashref git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@575 48953598-375a-da11-a14b-00016c27c3ee --- Changes | 1 + lib/Maypole.pm | 2 +- lib/Maypole/Config.pm | 15 ++++++++++----- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Changes b/Changes index 8794fc2..c884209 100644 --- a/Changes +++ b/Changes @@ -5,6 +5,7 @@ For information about current developments and future releases, see: 2.121 Bug Fixes : Apache::Request is fetched with a new object instead of instance if request options are provided + additional, request_options and view_options attributes of Maypole::Config are initialised with hashref 2.12 22 June 2007 diff --git a/lib/Maypole.pm b/lib/Maypole.pm index 4954ec7..8e24f8a 100644 --- a/lib/Maypole.pm +++ b/lib/Maypole.pm @@ -187,7 +187,7 @@ __PACKAGE__->mk_accessors( user session) ); -__PACKAGE__->config( Maypole::Config->new() ); +__PACKAGE__->config( Maypole::Config->new({additional => { }, request_options => { }, view_options => { },}) ); __PACKAGE__->init_done(0); diff --git a/lib/Maypole/Config.pm b/lib/Maypole/Config.pm index 2473986..3e80811 100644 --- a/lib/Maypole/Config.pm +++ b/lib/Maypole/Config.pm @@ -5,14 +5,19 @@ use attributes (); use strict; use warnings; -our $VERSION = "1." . sprintf "%04d", q$Rev$ =~ /: (\d+)/; +our $VERSION = 2.121; # Public accessors. __PACKAGE__->mk_accessors( - qw( view view_options uri_base template_root template_extension model - loader display_tables ok_tables rows_per_page dsn user pass opts - application_name additional build_form_elements request_options) -); + qw( + view view_options template_root template_extension build_form_elements + uri_base rows_per_page application_name + model loader display_tables ok_tables + dsn user pass opts + additional + request_options + ) + ); # Should only be modified by model. __PACKAGE__->mk_ro_accessors(qw( classes tables)); -- 2.39.2