On Tue, 2005-11-15 at 15:10 -0600, Peter Speltz wrote:
> Often I need the display_columns list minus a few specific columns
> that, say ,  I already have values for and do not want displayed in
> the traditional way.   Same for list columns.
> Currently, throughout my app I just type a new list with the columns I
> want. Not only is this a lot of typing but if a column gets deleted
> from a table , I have to go delete it from several lists scattered
> throughout several files.  What I really want to say is
> , if you could subtract a list from another list, (  I pretty sure you
> can do this in Ruby and I will check )

Absolutely! This is where the simplistic idea of writing individual
templates for individual views breaks down.

> @wanted = $class->display_columns  - (qw/col_I_dont_want col2.../);
> 
> So I am tring to dream up a decent interface to specify this in Maypole.
> Above would be beautiful. Perhaps display_columns could return an
> Object that behaves like a list except you can add and subtract from
> it.

I don't know if there's a CPAN module for this but there ought to be.
List::Arithmetic ?

Cheers, Dave



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Maypole-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maypole-users

Reply via email to