[Maypole] Using Maypole with existing Class::DBI classes
Marcus Ramberg
marcus@thefeed.no
Wed, 02 Jun 2004 09:23:33 +0200
Sebastian Willert wrote:
>Hi all,
>
>I am very impressed by Maypole and want to use it with a set of classes
>I've written using Class::DBI before I stubled on this framework. I
>could not use Maypole::Model::CDBI because the classes have names that
>are slightly different from those produced by Class::DBI::Loader. I have
>included my attempt to extend Maypole::Model::CDBI [1] to use this
>classes instead of autoloading some from Class::DBI::Loader, but I
>failed. The sources listed below do neither interact with the database
>(mysql logging is enabled but empty) nor produce any error messages:
>it's just like operating on empty datasets.
>
>
Hi Sebastian. Maypole::Model::CDBI does not require Class::DBI::Loader.
You can write normal CDBI classes and inherit from Maypole::Model::CDBI
, see the Flox example in http://cvs.simon-cozens.org/viewcvs.cgi/flox/
for an example of an application that does this.
Marcus
--
This e-mail has been protected by Song Networks' virus-scan service:
http://www.securemail.no