Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Maypole: The search_form template

by jplindstrom (Monsignor)
on Feb 16, 2005 at 20:01 UTC ( #431719=perlquestion: print w/replies, xml ) Need Help??

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?


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 when that happens.

    -- simonflk

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://431719]
Approved by Joost
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2022-05-27 21:12 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (97 votes). Check out past polls.