On 1/20/08, <b class="gmail_sendername">Dobrica Pavlinusic</b> &lt;<a href="mailto:dpavlin@rot13.org">dpavlin@rot13.org</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I would love to see more info about virtual-models branch and/or it&#39;s<br>status... Should I start my development against it instead of trunk<br>Jifty?</blockquote><div><br>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&#39;t give you much right now unless you want to programmatically build a model:
<br><br><span style="font-family: courier new,monospace;">my $model = Jifty::Model::ModelClass-&gt;new;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$model-&gt;create(name =&gt; &#39;Person&#39;);
</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">my $column = Jifty::Model::ModelClassColumn-&gt;new;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">$column-&gt;create(name =&gt; &#39;name&#39;, storage_type =&gt; &#39;varchar(100)&#39;, &#39;mandatory&#39; =&gt; 1);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">$column-&gt;create(name =&gt; &#39;color&#39;, storage_type =&gt; &#39;varchar(15)&#39;);</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">my $person = Jifty-&gt;app_class(&#39;Model&#39;, &#39;Person&#39;)-&gt;new;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
$person-&gt;create( name =&gt; &#39;Jesse Vincent&#39;, color =&gt; &#39;blue&#39; );</span><br><br>There&#39;s no GUI. I have placed CRUD in front of these two in CAS+ (possibly my private branch, I haven&#39;t had time for a merge down in a few months), which works, but it isn&#39;t very pretty yet. There&#39;s also several fields, like valid_values, validator, canonicalizer, that are not implemented yet.
<br><br>I&#39;m using the virtual-models branch on one production machine, but I&#39;m not sure I&#39;d recommend it to everyone. I would love some help hacking on it though. Since I have to divide my time between two major projects (one Jifty, one not) and a myriad if itty-bitty projects, I haven&#39;t ended up with as much hacking time on Jifty, particularly virtual-models, as I&#39;d like.
<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">continuing on integrating jifty.<br>does somebody has some experience how to integrate jifty
<br>app with other existing applications, as it takes too much<br>time to rewrite all of our stuff to jifty in a blink of an eye,<br>and we&#39;dlike to start using jifty and in our new apps,<br>but that needs at least reading data from existing
<br>databases/tables and making references to thise data<br>in new jifty recodrs, dropdowns etc. later we could move, everything<br>piece by piece to jifty. any thoughts?</blockquote><div><br>As I mentioned, I have two major apps. One is in Jifty, the other is running on top of Drupal. It is our plan to use the Drupal site to provide much of the front-end to our other work so that our clients don&#39;t have to leave there. My hope is to provide a Drupal analog to Jifty&#39;s regions (
i.e., use Jifty&#39;s JavaScript and some sort of server-side work in a Drupal module to help implement the non-JS fallback) to provide the glue that will stick these two applications together. I haven&#39;t really gotten time to work on it yet, so that&#39;s still just a theoretical implementation. ;)
<br><br>On another level, I can synchronize records between the applications using Jifty&#39;s REST.<br><br>Cheers,<br>Andrew<br></div><br></div></div>