From: Dave H. <dho...@mr...> - 2006-03-07 16:13:17
|
Ken Youens-Clark wrote: > On Mar 7, 2006, at 4:06 AM, Dave Howorth wrote: >> I generate my Data::FormValidator profiles (and a lot of other code) >> using a TT template that's fed by sqlt. > > Dave, > > I'd love to know more about this. Would you be willing to write up a > short description of what you do and how you do it? Maybe contribute > the template? > > I have some templates for SPOPS and Class::DBI (different from our CDBI > producer) that I'd like to contribute. Maybe we should put these into > an "examples" directory so others can benefit? Hi Ken, The dfv profiles are produced as part of generating a 'driver' for a Maypole application. There's some description, with an example and all the code at: http://www.mrc-lmb.cam.ac.uk/dhoworth/perl/Maypole-CDBI_Loader.html Caveats: It's not very pretty and it uses an obsolete but still supported flavour of the DFV syntax. I plan to seriously rewrite the whole thing, but not just yet :) Cheers, Dave |