jplindstrom has asked for the wisdom of the Perl Monks concerning the following question:

I hope no one minds me bringing the Maypole discussion to the monastery, the Maypole list being down and all.

Is it me, or should the search_form factory template look more like this:

<form method="get" action="[% base %]/[% classmetadata.table %]/search +/">

rather than like this:

<form method="get" action="[% base %]/[% classmetadata.moniker %]/sear +ch/">

Or did I miss configuring something for the class?

The "moniker", isn't that the human-readable form of table name? Are there ways the table name in the path could be transformed into something other than the real table name?

/J

Replies are listed 'Best First'.
Re: Maypole: The search_form template
by simonflk (Pilgrim) on Feb 18, 2005 at 12:40 UTC

    Actually there has been a lot of discussion on the list about deprecating the use of moniker() in Maypole. The moniker isn't necessarily the same as the table - take for instance, a table called "shopping_basket". The CDBI package generated for the table may be called "<MyApplication>::ShoppingBasket" resulting in a moniker of "shoppingbasket". Other examples mentioned include the possibility of nasty table names like "tx_qjkr[!ser:93/01]"

    And since moniker is meant to be human-readable rather than machine readable, it's something that some users want to override

    Re: the mailing list, I've set up a sourceforge project for Maypole and may move the lists there later today. I'll update http://maypole.perl.org when that happens.

    -- simonflk