From 5b4b953c05b8d8032d611e21c33c5a1487a8135c Mon Sep 17 00:00:00 2001 From: stefan Date: Wed, 17 Jun 2009 15:26:07 +0000 Subject: [PATCH] Remove bogus file. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4229 57a73879-2fb5-44c3-a270-3262357dd7e2 --- scripts/hyperdb_example.py | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 scripts/hyperdb_example.py diff --git a/scripts/hyperdb_example.py b/scripts/hyperdb_example.py deleted file mode 100644 index ca7f2b6..0000000 --- a/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( -- 2.30.2