fix to redirect_request
Fixed typo in _do_update_or_create (bug 26495)
added new hook - preprocess_location
+ added new attribute to Maypole::Config - request_options
2.111 Mon 30 April 2007
- forked - see 2.111 changelog
package Apache::MVC;
-our $VERSION = '2.11';
+our $VERSION = '2.12';
use strict;
use warnings;
sub get_request {
my ($self, $r) = @_;
+ my $request_options = $self->config->request_options || {};
my $ar;
if ($MODPERL2) {
- $ar = eval {require Apache2::Request} ? Apache2::Request->new($r) : $r;
+ $ar = eval {require Apache2::Request} ? Apache2::Request->new($r,%{$request_options}) : $r;
}
- else { $ar = Apache::Request->instance($r); }
+ else { $ar = Apache::Request->instance($r,%{$request_options}); }
$self->ar($ar);
}
use Maypole::Headers;
use Maypole::Constants;
-our $VERSION = '2.11';
+our $VERSION = '2.12';
__PACKAGE__->mk_accessors( qw/cgi/ );
=cut
-sub get_request
-{
- shift->cgi( CGI::Simple->new );
+sub get_request {
+ my $self = shift;
+ my $request_options = $self->config->request_options || {};
+ $CGI::Simple::POST_MAX = $request_options->{POST_MAX} if ($request_options->{POST_MAX});
+ $self->cgi( CGI::Simple->new );
}
=item parse_location
__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)
+ application_name additional build_form_elements request_options)
);
# Should only be modified by model.
Username to log into the database with.
+=head3 build_form_elements
+
+Flag specifying whether to build metadata for form elements in factory templates
+
+=head3 request_options
+
+Hashref of options passed when creating cgi or apache request
+
=head2 Adding additional configuration data
You can use the 'additional' attribute for stashing additional info, especially from additional_data method,