So I have been reading and learning a lot the last couple days about
this whole AJAX thing.  I really think it is something I am going
to move towards for web apps.  However, I don't want to lose Zope.
I wonder if any of you would be willing to comment on this?<br>
<br>
I quickly tested Ruby on Rails, given all it's hype lately.&nbsp; It's
a nice setup, but I kept using it thinking, &quot;I can do that in DTML
quite easy.&quot;&nbsp; I just don't have the XMLHttpRequest going, or the
Javascript client libraries that make the interface improvements.&nbsp;
The tutorials I followed mentioned that you have this nice recipe app
in a half hour.&nbsp; I thought again, &quot;So, I can do that in a half
hour in Zope.&quot;&nbsp; It's not the speed that appealing, it's the
XMLHTTP requests without page reloads that is appealing.&nbsp; If I can
just do this in Zope, wow!&nbsp; (There were some things in Rails that
I liked, like the whole Model/Controller/View thing.&nbsp; But, really,
we could implement that type of scenareo in Zope apps too, I would
think.)<br>
<br>
I did it. (at a very simple/small level)&nbsp; Though it's not
automated like in Rails, but it's not that hard.&nbsp; I used
Prototype.js and Rico.js for the Ajax client libs.&nbsp; Then I simply
setup a generic/non-css Rolodex page like the one for Rico
<a href="http://openrico.org/rico/demos.page?demo=ricoAjaxInnerHTML.html">http://openrico.org/rico/demos.page?demo=ricoAjaxInnerHTML.html</a>&nbsp;
>From here, I made a simple DTML Method, getPersonInfo.xml.&nbsp; It had
DTML to check for request objects passed in from the Rolodex ajax
objects, and then send back the particular record.&nbsp; Pretty simple,
but quite an eye opener for me.<br>
<br>
It really got me thinking.&nbsp; We need, for those of us who would
like to pursue this development, a Zope/Ajax backend.&nbsp; There's a
bunch of others for PHP, .NET, and whatever else.&nbsp; We need
ZAjax!&nbsp; <br>
<br>
I would love to have a product (called ZAjax :) that simply receives a
request from the client and spits out xml.&nbsp; To be more specific, a
set of classes that call ZSQL methods and retrieve records, then send
that back in xml format.&nbsp; Maybe make it so, in my client script, I
can call the python class with arguments of, zsql method name, zsql
method args.&nbsp; Doing it this way would keep things database
platform independent. (more so than Rails)&nbsp; Also, it would give
you control of the SQL, and make our table space indiferent to the
python or client engine.&nbsp; And, it would still keep it simple, or
at least, not really any more complicated than doing zpt or dtml.
IMHO.&nbsp; What do you guys think?<br>
<br>
One of the things that bugged me about Rails was the fact that you have
to name your table primary keys &quot;id&quot;.&nbsp; And you have to call them a
plural name.&nbsp; (like contacts)&nbsp; And in the ruby code, you
refer to your classes singularly. (contact)&nbsp; Plus, foreign keys
had to be named, othertable_id. This whole thing really messed me up,
and turned me off to it.&nbsp; Then, I found out that using stored
procedures was shunned upon.&nbsp; LOL!&nbsp; Yeah right!&nbsp; I can
totally see the arguments they have though, but to me it's a matter of
preference.&nbsp; I like sprocs for certain things, whether or not I am
using a whole new style of web programming.&nbsp; And, I love
Zope.&nbsp; Can't do without it.<br>
<br>
So, after reading all that, I have on last thought.&nbsp; Is it really
best to even use Zope in an AJAX-style application?&nbsp; Maybe it's
best to use mod-python in Apache?&nbsp; And if I am doing that, then
there's always DJango.&nbsp; Well, for me, I have a hunch, that at some
point the ability to use your Ajax app with the existing ZODB (and all
the other Zope niceties) will be huge benefit and a powerful platform.<br>
<br>
OMG, long email...<br>
<br>
I am going to spend a little more time practicing this new development
and testing it.&nbsp; Probably I will move to <a href="http://script.aculo.us">script.aculo.us</a> for the
extension to prototype.js because of the nice interface elements.&nbsp;
However, I don't know how to build a Zope product yet. So, if there's
nothing available in the next few months, I guess I'll start working on
it. (IF I decide it really is best to stick with Zope, which I think it
is.)&nbsp; BTW, I know about the Json thing too, but I prefer to stick
with same methods and objects already used, like prototype. (used by
Rails) <br>
<br>
Is there an sql to xml product for zope that would do this already?&nbsp; <br>
<br>
Thanks for listening... and I'll have more to say.<br>
Greg<br>
<br clear="all"><br>-- <br>Greg Fischer<br>1st Byte Solutions<br><a href="http://www.1stbyte.com">http://www.1stbyte.com</a>