]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Apache/MVC.pm
Completely insane code.
[maypole.git] / lib / Apache / MVC.pm
index 4b1a60005750c186b7659cdefa224e01b72afee0..960888f2835c2bdc3a80655bde3af87027ed32b1 100644 (file)
@@ -6,9 +6,9 @@ use UNIVERSAL::require;
 use Apache::Constants ":common";
 use strict;
 use warnings;
-our $VERSION = "0.1";
-__PACKAGE__->mk_classdata($_) for qw( _config init_done view_object );
-__PACKAGE__->mk_accessors ( qw( config ar params objects model_class
+our $VERSION = "0.2";
+__PACKAGE__->mk_classdata($_) for qw( config init_done view_object );
+__PACKAGE__->mk_accessors ( qw( ar params query objects model_class
 args action template ));
 __PACKAGE__->config({});
 __PACKAGE__->init_done(0);
@@ -22,13 +22,6 @@ sub import {
     }
 }
 
-# This is really dirty.
-sub config {
-    my $self = shift;
-    if (ref $self) { return $self->_config_accessor(@_) }
-    return $self->_config(@_);
-}
-
 sub set_database {
     my ($calling_class, $dsn) = @_;
     $calling_class = ref $calling_class if ref $calling_class;
@@ -109,6 +102,7 @@ sub parse_location {
     $self->{args} = \@pi;
 
     $self->{params} = { $self->{ar}->content };
+    $self->{query}  = { $self->{ar}->args };
 }
 
 sub is_applicable {