[Dbix-class] better HTML-Widget integration

Carl Franks fireartist at gmail.com
Mon Mar 27 18:06:35 CEST 2006


After further talk with Matt on #dbix-class about how this should be
handled on the dbix-class end, here's patches for initial mysql
support (patches against svn v1369).

The intention is that the storage backends handle all the details, and
make them available through a standardised API.
This allows other validation frameworks utilize the column data.
I've added the docs for the new keys in the general Storage/DBI.pm
file, in the hope other storage backends will use the same keys where
appropriate.

The new keys are available through
    TableClass->column_info->{foo};

Now, I'll start coding HTML-Widget-Constraint-DBIC

The intended interface would be
    $w->constraint( 'DBIC', 'foo' )->class( 'TableClass' );
or
    $w->constraint( 'DBIC', 'foo' )->class( 'TableClass' )->column( 'bar' );
where the column name differs from the form field name.

Feedback welcome.
Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 60dbic_storage_dbi_mysql_internals.t
Type: application/x-troff
Size: 3552 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/dbix-class/attachments/20060327/02f94139/attachment.t 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DBI.pm.patch
Type: text/x-patch
Size: 1745 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/dbix-class/attachments/20060327/02f94139/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mysql.pm.patch
Type: text/x-patch
Size: 5473 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/dbix-class/attachments/20060327/02f94139/attachment-0001.bin 


More information about the Dbix-class mailing list