Re: [Maypole] Why is moniker used instead of of table name when looking for table specific templates?

From: Peter Speltz (peterspeltz at yahoo.com)
Date: Mon Dec 27 2004 - 21:20:20 GMT


--- Tony Bowden <tony-maypole at kasei.com> wrote:

> On Sun, Dec 26, 2004 at 12:53:23PM -0800, Peter Speltz wrote:
> > The example in its simplicity is misleading as under default class dbi a
> table
> > like "note_card" will have a moniker like "notecard" and thus the directory
> > "notecard" will be searched.
>
> A table doesn't have a moniker.
>
> Only classes have monikers.
>

Right. I meant -- A class whose table is 'note_card' and is automatically
created by Class::DBI::Loader and thus gets a class name of "NoteCard" will
have a moniker of "notecard".
Sorry if I confused anyone.

> And the moniker can certainly have an underscore.
>

That may be good to know sometime. Thanks. I looked in CDBI docs and Universal
Moniker docs and couldn't find any specifics of what does. Is there a reason
why that method is undocumented (or is it documented)? If it's because no one's
done it yet, i'll try to send a patch if that'd be desireable.

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

=====
pjs

                
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com
 

_______________________________________________
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