summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 85c83e3)
raw | patch | inline | side by side (parent: 85c83e3)
author | stefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 17 Jun 2009 15:26:07 +0000 (15:26 +0000) | ||
committer | stefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 17 Jun 2009 15:26:07 +0000 (15:26 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4229 57a73879-2fb5-44c3-a270-3262357dd7e2
scripts/hyperdb_example.py | [deleted file] | patch | blob | history |
diff --git a/scripts/hyperdb_example.py b/scripts/hyperdb_example.py
+++ /dev/null
@@ -1,19 +0,0 @@
-from roundup.hyperdb import String, Number, Multilink
-from roundup.backends.back_bsddb import Database, Class
-
-class config:
- DATABASE='/tmp/hyperdb_example'
-
-db = Database(config, 'admin')
-spam = Class(db, 'spam', name=String(), size=Number())
-widget = Class(db, 'widget', title=String(), spam=Multilink('spam'))
-
-oneid = spam.create(name='one', size=1)
-twoid = spam.create(name='two', size=2)
-
-widgetid = widget.create(title='a widget', spam=[oneid, twoid])
-
-# dumb, simple query
-print widget.find(spam=oneid)
-print widget.history(widgetid)
-print widget.search_text(