Re: [Maypole] specifying different names for classmetadata elements

From: Dave Howorth (dhoworth at mrc-lmb.cam.ac.uk)
Date: Tue Dec 07 2004 - 13:04:14 GMT


Tony Bowden wrote:
> On Mon, Dec 06, 2004 at 12:11:30PM +0000, Simon Flack wrote:
>>You can define moniker() and plural_moniker() in your model classes. I'm
>>not sure how this would affect the rest of the system. AFAIK, they're
>>only presentational, so it should be ok to do that.
>
> They're not only presentational.
>
> Class::DBI uses them for a variety of purposes; mostly for guessing
> arguments in relationships.

Maypole itself uses them as well. It uses them to create the alternative
template variable names (i.e. 'beers' for 'objects'). So they'd better
continue to have GluedTogetherSemantics; not ideal for displaying Long
Table Names.

Cheers, Dave

_______________________________________________
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:57 GMT