Simon Flack wrote:
>> - I don't use C-DBI-Loader at present, so I'd rather not have to load
>> that.
>
> Maypole::Model::CDBI::Plain should do that, but because it inherits from
> M::M::CDBI, you still end up loading CDBI::Loader.
At the moment I use my own template-based loader to do the setup so I
don't need M-M-CDBI-Plain.
>> So I'd like some way to not have to load all these modules. Even
>> something as simple as putting all the use statements in a method so
>> it could be overridden would be adequate.
>
> I need to think about this some more, but we could start with a
> M::M::CDBI::Minimal and build the loader/plain modules on top of that.
Sounds good. The whole topic of model customization gets pretty gnarly.
As I think was mentioned before, something that would automatically deal
with both the automatically-generated classes and additional methods in
separate subclass files would be nice.
> I'd also like to take a look at Data::FormValidator as a possible future
> replacement for CGI::Untaint.
I decided to look at it based on what Jesse Sheidlower said and what
Perrin Harkins and Cees Hek and others said on the CDBI list. I've just
put together a do_edit and I'm trying to get it to run. There's
something of a learning curve with the constraints and Regexp::Common.
I'm at the bottom of the hill and don't yet understand what are the
simple ready-to-use constraints corresponding to printable, integer etc
(the default email constraint only handles US email addresses, for
example!). The profile structure also seems complicated. Hopefully it
will all look clearer in a few days and I can figure out a way to hide
the details away. I'll post my code FYI when I have something worth
looking at.
Cheers, Dave
_______________________________________________
maypole-dev mailing list
maypole-dev at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole-dev
This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:58 GMT