Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Maypole: The search_form template

by jplindstrom (Monsignor)
on Feb 16, 2005 at 20:01 UTC ( [id://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?

/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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-25 02:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found