>>>Is this possible? I have been using my own subclasses of Class::DBI for 
another application ....
 >
 > >Yes. That's why we have Maypole::Model::CDBI::Plain.
 > >
 > >See perldoc Maypole::Model::CDBI::Plain for a synopsis/example.
 >
 > Cool! I figured there must be something I was missing. Although I didnt 
see
 > a refrence to this perldoc in Maypole::Manual or Maypole::Manual::Model. 
At
 > any rate, I will check this out. Thanks again!


Ok so finaly got my Maypole::Model::CDBI::Plain on; although I didnt get too 
far.
Heres one of my files:


package BS::Actions::Provider;
use Maypole::Application;

    BS::Actions::Provider->config->model("Maypole::Model::CDBI::Plain");
    BEGIN{BS::Actions::Provider->setup([qw/BS::DB::Provider/]);}

    BS::DB::Provider->untaint_columns(printable => [qw/name/]);


    sub view : Exported {
        my ($class,$r) = @_;
        #get provider etc...
    }

The BEGIN block was added to remidy a "Invalid Code attribute : Exported at 
...." as per the FAQ
(although it seems somewhat out of order to run the block before setting 
BS::Actions::Provider->config->model("Maypole::Model::CDBI::Plain")).

But then this brings up the following error:

Couldn't require loader class "Class::DBI::Loader::", "Can't locate 
Class/DBI/Loader/.pm in @INC (...)

As you can see, there was no loader supplied when Loader tried to 'use'  the 
loader implementation via an eval. Useually this value would come from the 
DBI connection string. Something that would be supplied in a typical setup() 
call, but when using Plain, this does not happen. One would assume that it 
gets it from my existing  Class::DBI classes. But this is not so.... any 
ideas?

Thanks Again!



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Maypole-users mailing list
Maypole-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maypole-users

Reply via email to