[Maypole] column accessors

From: Dave Howorth (dhoworth at mrc-lmb.cam.ac.uk)
Date: Tue Dec 14 2004 - 14:43:31 GMT


CDBI provides a facility to change the names of the column accessor
functions. If you make use of this, you need to fix a template. In
macros.tt, change:

             maybe_link_view(item.$col);
to
             accessor = item.accessor_name(col);
             maybe_link_view(item.$accessor);

There may be other places as well that I just haven't come across yet.
Another approach would be to provide another list in classmetadata; I
may also think about that later.

Cheers, Dave

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT