[jifty-devel] integrating/growing jifty apps into bigger ones

Robert Barta rho at devc.at
Mon Jan 21 03:56:01 EST 2008

On Sun, Jan 20, 2008 at 03:47:11PM -0600, Andrew Hanenkamp wrote:
> The virtual-models branch is working, but the documentation is weak and
> there are certain pitfalls that are not obvious when you get into it. It
> also doesn't give you much right now unless you want to programmatically
> build a model:
> my $model = Jifty::Model::ModelClass->new;
> $model->create(name => 'Person');
> my $column = Jifty::Model::ModelClassColumn->new;
> $column->create(name => 'name', storage_type => 'varchar(100)', 'mandatory'
> => 1);
> $column->create(name => 'color', storage_type => 'varchar(15)');
> my $person = Jifty->app_class('Model', 'Person')->new;
> $person->create( name => 'Jesse Vincent', color => 'blue' );

Do I understand this correctly that I could subclass J::M::ModelClass
and provide another model, which - as is in my case - is NOT based on
a relational data model?

I have here Topic Maps (and RDF) data, so that would be finally a
pathway to plug Jifty into that.

And then he said: "You should read my blog." http://kill.devc.at/

More information about the jifty-devel mailing list