On 07/15/2007 11:37 PM, Cees Hek wrote: > On 7/11/07, mla <[EMAIL PROTECTED]> wrote: >> Do most of you use Rose::HTML::Form to validate >> user-supplied data before constructing RDBO your >> RDBO objects? > > I do for many of my apps. > >> Do you define the form constraints separately from >> the RDBO model constraints? Or is there a way to >> reuse one or the other? > > Currently yes. I have been meaning to merge these things though, so I > spent a bit of time investigating how easy it would be.
I find myself needing to bootstrap a bunch of Rose-based apps. Ideally, I'd like to be able to run a script like: make_rose_garden.pl --db db_name --host some.where --prefix MyGarden and I would get RDBO .pm files, RHTMLO .pm files and some integrated validation glue, all generated for me under the MyGarden:: prefix. Then I could edit the form classes (or maybe even a .yml config file) to adjust the field labels. Maybe even some .tt stock templates to render my forms in a sane way. Maybe even a --catalyst option to generate the required ::Controller and ::Model classes for me. So I'm going to dive in and work on such a thing. In the Rose::DBx::Garden namespace. Thoughts? Comments? -- Peter Karman . [EMAIL PROTECTED] . http://peknet.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object