changeset 158:cfbf702d119b

Add test objects also to the 'ao' table.
author Daniele Nicolodi <daniele@grinta.net>
date Fri, 04 Nov 2011 11:11:32 +0100
parents 5af343faf647
children 8bd23369e429
files src/ltpdarepo/admin.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ltpdarepo/admin.py	Fri Nov 04 11:07:40 2011 +0100
+++ b/src/ltpdarepo/admin.py	Fri Nov 04 11:11:32 2011 +0100
@@ -299,6 +299,8 @@
                      (objid, 'ao', name, datetime.utcnow(), '0.1', '127.0.0.1', 'localhost', 'any',
                       submitted, title, description, analysis, 'FOO', '', '', 'testing', '',
                       None, None, None))
+        curs.execute("""INSERT INTO ao (obj_id, data_type, description)
+                        VALUES (%s, %s, %s)""", (objid, 'tsdata', 'Foo'))        
         curs.execute("""INSERT INTO tsdata (obj_id, fs, t0, nsecs)
                         VALUES (%s, %s, %s, %s)""", (objid, 10, t0, nsecs))
         t0 += timedelta(seconds=nsecs)