[Helma-user] [Helma-dev] Announcing Rabbit
tobias.schaefer at orf.at
tobias.schaefer at orf.at
Thu Oct 5 23:14:57 CEST 2006
hannes
i took another look at the rabbit code and i think it's not a database
issue.
it's rather the missing initialisation of rabbit causing the loss of
the HopObject's main- and edit_action.
this initialisation currently is only done in the example script. after
a restart calling one of these two actions of a previously created Item
object will result in a 404.
because i want to keep clean both the application namespace as well as
the rabbit api from any default initialisation this must be done in the
application rabbit is residing in; e.g. simply by adding the following
line to the global context:
var rabbit = new Rabbit();
this should do the trick with defining the HopObject actions as well as
the definitions of the global methods i already described.
hth,
tobi
-----Original Message-----
From: helma-user-bounces at helma.org on behalf of Hannes Wallnoefer
Sent: Wed 04-Oct-06 12:29
To: Helma User Mailing List
Cc:
Subject: Re: [Helma-user] [Helma-dev] Announcing Rabbit
Hi Tobi,
this rabbit thing is very cool. It's definitely a direction in which
Helma needs to grow, and I hope you will continue working on it. I
will be supportive for making this an official part of Helma once it
gets mature enough.
I also think that your way of starting this as an API (instead of a
fully knitted app/module) is the right one, although my understanding
is still very limited, and I didn't have much time to think about it.
One idea about the DB creation/handling stuff: The sqlShell code is
pretty much a mess, but there might be some parts in there that could
be useful for rabbit. Stuff like low level JDBC interaction... Maybe
pulling it out of sqlShell and adding it to the rabbit API could
increase the usefulness of that code.
2006/10/3, tobias.schaefer at orf.at <tobias.schaefer at orf.at>:
>
> the above call, as executed in the example, creates the prototype directory
> Item and a corresponding table T_ITEM in the hsqldb. (db.properties are
> generated as well.)
>
There seems to be a problem with the hsqldb: database content seems to
gone after restarts. When i look at the hsql.db directory, the data
seems to be there, but the URL /1/ renders an Object not found page.
Maybe it has to do with the database not being closed or opened
properly.
hannes
_______________________________________________
Helma-user mailing list
Helma-user at helma.org
http://helma.org/mailman/listinfo/helma-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://helma.org/pipermail/helma-user/attachments/20061005/f4d47975/attachment.html
More information about the Helma-user
mailing list