From 0db87a811fef3a08d9f547d53388f1f8ef80422b Mon Sep 17 00:00:00 2001 From: yvesf Date: Thu, 8 Jul 2010 23:37:01 +0200 Subject: fehler im model behoben und test.py aktualisiert --- test.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'test.py') diff --git a/test.py b/test.py index 82df5b6..958c7b1 100644 --- a/test.py +++ b/test.py @@ -17,11 +17,18 @@ session = Session() t1_sensor = model.Sensor("foosensor", "blatest") session.add(t1_sensor) -for i in xrange(10000): - session.add( model.Value(t1_sensor, 0.5) ) +for i in xrange(10): + m = model.ValueInt(t1_sensor, 1) + session.add( m ) -session.commit() + m = model.ValueFloat(t1_sensor, 1.2) + session.add( m ) + + m = model.ValueString(t1_sensor, "foobar") + session.add( m ) + +session.commit() session.close() -- cgit v1.2.1