diff roundup/demo.py @ 5070:04e48cfc91da

fix demo.py after database backend moved from db/backend to config.ini::[rdbms].backend. Note this will have to change if backend location moved to [main].backend (tomatch [main].db).
author John Rouillard <rouilj@ieee.org>
date Sun, 05 Jun 2016 20:58:01 -0400
parents 9bb20454f409
children 7f00a47b3559
line wrap: on
line diff
--- a/roundup/demo.py	Sun Jun 05 20:48:07 2016 -0400
+++ b/roundup/demo.py	Sun Jun 05 20:58:01 2016 -0400
@@ -44,6 +44,8 @@
         config['RDBMS_PASSWORD'] = 'rounduptest'
         config['RDBMS_NAME'] = 'rounduptest'
 
+    config['RDBMS_BACKEND'] = backend
+
     # see if we need to clean up existing directory
     if os.path.exists(home):
         if os.path.exists(home + '/config.ini'):
@@ -65,7 +67,6 @@
     nosyreaction += 'c'
     if os.path.exists(nosyreaction):
         os.remove(nosyreaction)
-    init.write_select_db(home, backend)
 
     # figure basic params for server
     hostname = 'localhost'

Roundup Issue Tracker: http://roundup-tracker.org/