[Maypole] AsForm issues

Simon Cozens simon@simon-cozens.org
Wed, 21 Jul 2004 11:31:59 +0100


Tony Bowden:
> Maypole gets around that by passing it into the template wrapped as a
> hashref, and I'll probably end up there, but it seems that AsForm would
> be much nicer if it was able to be used more directly in TT.  Am I
> missing something obvious?

You're correct, but changing it to be a hashref would be quite a big interface
change. I guess I could probably get away with checking wantarry and 
deprecating list usage with a warning.

> 2) The has_many dropdown is nifty, but I'd really like to be able to
> specify how I order the list. Do I really have to override retrieve_all
> in the class in question to sort? Is there something that could be added
> to the interface for this instead?

I'm not sure where would be the best place to put this in the interface.
What would the ->to_field call look like in an ideal world?

I'm also open to ways of turning many-to-many relationships into a multiple
select, now we can get at the relationship metadata more easily.

-- 
  "They laughed at Columbus, they laughed at Fulton, they laughed at the
   Wright brothers.  But they also laughed at Bozo the Clown."
	 -- Carl Sagan