# HG changeset patch # User Daniele Nicolodi # Date 1320401492 -3600 # Node ID cfbf702d119b730635d01f83467b432f4f561f70 # Parent 5af343faf6476cac56c158e068052417c2f06aab Add test objects also to the 'ao' table. diff -r 5af343faf647 -r cfbf702d119b src/ltpdarepo/admin.py --- 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)