On Tue, 2006-09-05 at 21:07 +0100, Aaron Trevena wrote: > Application::Foo->untaint(...);
I take it that Application::Foo is a maypole-model subclass, i.e. it corresponds to a table? > You can also specify actions for your data classes i.e. > > Application::Foo actionname :exported { > .. > } > > You don't need to touch your C::DBI classes at all. > > Hopefully that makes it clearer. > > Some quick points regarding Dave's post : > > You DON'T need to put actions in your classes, you only need to ensure > they are declared in that classes namespace - i.e. sub > classname::methodname. Errm, a class is a package is a namespace, acccording to Programming Perl. I think you mean that you don't need to put a class's methods in its module, or even have a module (i.e. specific file) for the class to exist. Maypole actions for a particular table belong in the corresponding maypole-model-subclass. Actions usable on all tables belong in the main maypole-model-[super]class (and that is sufficient reason to create one if there wasn't one before, IMHO). > You can do this either in a driver/controllor > class, cgi script or you can group the actions together in a class and > 'use' it in your driver/controllor class. I take it you mean you can have a file that contains definitions of actions for several different classes. This is possible of course but IMHO it's not wise. Been there, done that, got the tee shirt. > You don't need to make your model data classes inherit from > Maypole::Model::CDBI::Plain - the module will 'adopt' them when you > call setup in your driver class. Is there some document that describes the current situation with a full code example? A quick scan of the modules' POD left me confused. Cheers, Dave ------------------------------------------------------------------------- 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