[Maypole] another PB with :Exported

michael michael@petersfamily.org
Wed, 9 Jun 2004 17:45:47 -0500


Ok, 
I'm having a problem adding a new action. I found this post
http://lists.netthink.co.uk/pipermail/maypole/2004-May/000256.html
where he seemed to have the same problem and then simon 'kindly' pointed him
toward the first recipe which deals with separating the model classes. I'm not
doing that, but I still get the same 'Invalid CODE attribute: Exported' error.

here's my module...

[code]
package Petition::Handle;
use Apache::Reload;
use base 'Apache::MVC';
                                                                             
                                               
                                                                             
                                               
Petition::Handle->setup("dbi:mysql:AHR", 'root', 'whatever');
Petition::Handle->config->{template_root} = "/home/ahr/www/Petition/templates";
Petition::Handle->config->{uri_base} = "http://localhost:8080/Petition/";
Petition::Handle->config->{display_tables} = [qw[Petition User Sector Signature]];
Petition::User->has_a(Petition => 'Petition::Petition');
Petition::User->untaint_columns(
        printable => [qw(name password)],
        integer => [qw(Petition)],
        );
sub add :Exported {}

1;
[/code]

all in one file/module and it still gives that error.

thanks for any help.
Michael Peters