On 9/16/05, Peter Speltz <[EMAIL PROTECTED]> wrote:

> On 9/16/05, David Baird <[EMAIL PROTECTED]> wrote:

> > package MyModel;
> > use base 'Maypole::Model::Foo; # eg CDBI - something that inherits
> > from Mp::M::Base
> >
> > __PACKAGE__->model_plugins( qw/ FunkyEdit BetterSearch BeerMakerTools / );
> > 1;
> >
> >
> > model_plugins() is defined in Mp::M::Base. It require()s
> > Maypole::ModelPlugin::FunkyEdit etc., and calls their import() methods
> > from within the MyModel namespace. ModelPlugins use standard Exporter
> > techniques to export code to us.
> >
> > Not confident this would work for methods with attributes though, but
> > I'm sure we could figure that out.
> >
> 
> This is good Dave. Is it written?  

Not yet, wanted to throw it out there and see if it falls apart first. 

d.


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Maypole-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-devel

Reply via email to