[Catalyst] HTML-Widget-Constraint-MySQL for testing

Carl Franks fireartist at gmail.com
Tue Mar 14 16:28:28 CET 2006


If anyone's interested, there's a new project in the subversion repository, at
trunk/HTML-Widget-Constraint-MySQL

It provides constraints based on mysql column types.

Usage:
    my $widget = HTML::Widget->new;

    $widget->element( 'Textfield', 'name' );
    $widget->element( 'Textfield', 'age' );
    $widget->element( 'Textfield', 'salary' );

    $widget->constraint( 'MySQL::VARCHAR',    'name' );
    $widget->constraint( 'MySQL::U_SMALLINT', 'age' );
    $widget->constraint( 'MySQL::BIGINT',     'salary' );

I've used similar checks in many projects over the years, and am very
glad that HTML-Widget is now here to provide an easy-to-use framework,
and is easily expanded like this :)

This is still very much in alpha, and subject to change.
At the moment, only the numeric columns are defined. More to come!

Feedback very much welcome.

Cheers,
Carl



More information about the Catalyst mailing list