[Maypole] specifying different names for classmetadata elements
Dave Howorth
dhoworth@mrc-lmb.cam.ac.uk
Tue, 07 Dec 2004 13:04:14 +0000
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