Re: [Maypole] Re: Getting a New CDBI object without creating one in db?

From: Tony Bowden (tony-maypole at kasei.com)
Date: Tue Oct 19 2004 - 09:19:42 BST


On Mon, Oct 18, 2004 at 04:50:20PM -0700, Peter Speltz wrote:
> Kind people have informed me of the Template::Plugin module and that is
> acceptable. However if i know ahead of time I will need class methods of an
> object in a template , I sometimes just bless a template arg into the class i
> need.

That's generally a bad idea. It's entirely possible for a method to do
different things when called as a class method than as an instance
method.

> As an aside, this question started with Maypole , where every default model
> method sends the template an object(s) of the appropriate type unless you're
> creating a new object of that type. Then you have no object.

Perhaps Maypole automatically pass a Template::Plugin::Class::Proxy
object for the class in with the rest of the meta info?

Tony

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT