messages via attribute message and model's error_message attribute.
- Updated templates and widget to match this
- Added an example to ComponentUI
+ - Add support for the external MooseX::Types::Common and
+ MooseX::Types::DateTime type libraries in the VPs
0.001001 - 12 Aug 2008
- Initital public release
requires 'Text::CSV_XS';
requires 'Devel::Declare' => '0.003004';
requires 'MooseX::Types' => '0.04';
+requires 'MooseX::Types::Common';
+requires 'MooseX::Types::DateTime';
requires 'Scalar::Util';
requires 'File::ShareDir' => '1.00';
requires 'namespace::clean' => '0.08';
* Reaction::UI::ViewPort::Field
- Why did the check for non lazy_fail lazy attrs go away? it breaks my IMs
- code is commented out, but does anyone know why?
\ No newline at end of file
+ code is commented out, but does anyone know why?
+
+* Reaction::Types::*
+ - Eliminate the ones we can spin into external MooseX::Types stuff
+ - re-export the types from MooseX::Types::Common as Reaction types
+ - same thing but with the DateTime and MooseX::Types::DateTime
\ No newline at end of file
around _build_fields_for_type_ArrayRef => sub { return };
around _build_fields_for_type_Reaction_InterfaceModel_Collection => sub { return };
+#The types we'll be using going forward ...
+around _build_fields_for_type_MooseX_Types_Common_String_Password => sub { return };
+around _build_fields_for_type_MooseX_Types_Common_String_SimpleStr => sub {
+ $_[0]->(@_[1,2], { layout => 'value/string', %{ $_[3] || {} } })
+};
+around _build_fields_for_type_MooseX_Types_DateTime_DateTime => sub {
+ $_[0]->(@_[1,2], { layout => 'value/date_time', %{ $_[3] || {} } })
+};
+around _build_fields_for_type_DateTime => sub {
+ $_[0]->(@_[1,2], { layout => 'value/date_time', %{ $_[3] || {} } })
+};
+
+
__PACKAGE__->meta->make_immutable;
$self->_build_simple_field(attribute => $attr, class => Collection, %$args);
}
+sub _build_fields_for_type_MooseX_Types_Common_String_SimpleStr {
+ my ($self, $attr, $args) = @_;
+ $self->_build_simple_field(attribute => $attr, class => String, %$args);
+}
+
+sub _build_fields_for_type_MooseX_Types_Common_String_Password {
+ return;
+}
+
+sub _build_fields_for_type_MooseX_Types_DateTime_DateTime {
+ my ($self, $attr, $args) = @_;
+ $self->_build_simple_field(attribute => $attr, class => DateTime, %$args);
+}
+
+sub _build_fields_for_type_DateTime {
+ my ($self, $attr, $args) = @_;
+ $self->_build_simple_field(attribute => $attr, class => DateTime, %$args);
+}
+
__PACKAGE__->meta->make_immutable;
1;
}
}
+sub _build_fields_for_type_MooseX_Types_Common_String_SimpleStr {
+ my ($self, $attr, $args) = @_;
+ $self->_build_simple_field(attribute => $attr, class => String, %$args);
+}
+
+sub _build_fields_for_type_MooseX_Types_Common_String_Password {
+ my ($self, $attr, $args) = @_;
+ $self->_build_simple_field(attribute => $attr, class => Password, %$args);
+}
+
+sub _build_fields_for_type_MooseX_Types_DateTime_DateTime {
+ my ($self, $attr, $args) = @_;
+ $self->_build_simple_field(attribute => $attr, class => DateTime, %$args);
+}
+
+sub _build_fields_for_type_DateTime {
+ my ($self, $attr, $args) = @_;
+ $self->_build_simple_field(attribute => $attr, class => DateTime, %$args);
+}
+
__PACKAGE__->meta->make_immutable;
1;
extends 'DBIx::Class';
use aliased 'RTest::TestDB::Foo';
-use Reaction::Types::Core qw/NonEmptySimpleStr/;
-use Reaction::Types::DateTime qw//;
+use MooseX::Types::Common::String qw/NonEmptySimpleStr/;
+use MooseX::Types::DateTime qw/DateTime/;
use Reaction::Types::File 'File';
has 'name' => (isa => NonEmptySimpleStr, is => 'rw', required => 1);
has 'foo' => (isa => Foo, is => 'rw', required => 1);
-has 'published_at' => (isa => Reaction::Types::DateTime::DateTime, is => 'rw');
+has 'published_at' => (isa => DateTime, is => 'rw');
has 'avatar' => (isa => File, is => 'rw');
use namespace::clean -except => [ 'meta' ];
extends 'DBIx::Class::Core';
use MooseX::Types::Moose qw/ArrayRef Int/;
-use Reaction::Types::Core qw/NonEmptySimpleStr/;
+use MooseX::Types::Common::String qw/NonEmptySimpleStr/;
has 'id' => (isa => Int, is => 'ro', required => 1);
has 'name' => (isa => NonEmptySimpleStr, is => 'rw', required => 1);
extends 'DBIx::Class';
use MooseX::Types::Moose qw/ArrayRef Int/;
-use Reaction::Types::Core qw/NonEmptySimpleStr/;
+use MooseX::Types::Common::String qw/NonEmptySimpleStr/;
has 'id' => (isa => Int, is => 'ro', required => 1);
has 'first_name' => (isa => NonEmptySimpleStr, is => 'rw', required => 1);