r9741 - in helma-ng/trunk/apps/storage: . skins
[email protected] Wed, 13 May 2009 14:52:54 +0200 (CEST)
| Newsgroups | gmane.comp.java.helma.cvs |
|---|---|
| Message-ID | <20090513125254.400633D0D6@mia> |
Author: hannes
Date: 2009-05-13 14:52:54 +0200 (Wed, 13 May 2009)
New Revision: 9741
Added:
helma-ng/trunk/apps/storage/skins/edit.html
helma-ng/trunk/apps/storage/skins/remove.html
Modified:
helma-ng/trunk/apps/storage/README.txt
helma-ng/trunk/apps/storage/model.js
Log:
Add missing pieces of new unified storage app.
Details at http://dev.helma.org/trac/helma/changeset/9741
Modified: helma-ng/trunk/apps/storage/README.txt
===================================================================
--- helma-ng/trunk/apps/storage/README.txt 2009-05-13 12:52:50 UTC (rev 9740)
+++ helma-ng/trunk/apps/storage/README.txt 2009-05-13 12:52:54 UTC (rev 9741)
@@ -1,2 +1,10 @@
-This is a demo app for helma/filestore, a simple, file based database
-that uses JSON as data representation.
+This is a demo app for the unified storage API in Helma NG.
+
+If run on Google App Engine the app will use the Google's Datastore binding
+defined in the helma/storage/googlestore module.
+See http://dev.helma.org/ng/Running+Rhino+and+Helma+NG+on+Google+App+Engine/
+for more information on how to run Helma NG applications on Google App Engine.
+
+Otherwise, the app will use helma/storage/filestore as database backend, a
+simple file based persistence engine that uses JSON as its data format.
+
Modified: helma-ng/trunk/apps/storage/model.js
===================================================================
--- helma-ng/trunk/apps/storage/model.js 2009-05-13 12:52:50 UTC (rev 9740)
+++ helma-ng/trunk/apps/storage/model.js 2009-05-13 12:52:54 UTC (rev 9741)
@@ -1,4 +1,9 @@
-include('helma/storage/filestore');
+// use google datastore if it is available, else fall back to filestore
+try {
+ include('helma/storage/googlestore');
+} catch (error) {
+ include('helma/storage/filestore');
+}
export('Book', 'Author');
Added: helma-ng/trunk/apps/storage/skins/edit.html
Added: helma-ng/trunk/apps/storage/skins/remove.html