diff roundup/init.py @ 5041:5251e97b1de0

Configure the database backend in the config.ini The database backend is currently configured in the 'db/backend_name' file which is just another file that needs to be configured when setting up or migrating a tracker instance. By moving this setting into the config.ini it helps to reduce the number of files that need to be configured and is more logical place for users to find the setting.
author John Kristensen <john@jerrykan.com>
date Mon, 22 Dec 2014 13:30:20 +1100
parents 3b632a25b1b3
children 198b6e810c67
line wrap: on
line diff
--- a/roundup/init.py	Tue Jan 12 16:07:07 2016 +0100
+++ b/roundup/init.py	Mon Dec 22 13:30:20 2014 +1100
@@ -175,21 +175,4 @@
     finally:
         f.close()
 
-def write_select_db(instance_home, backend, dbdir=None):
-    ''' Write the file that selects the backend for the tracker
-    '''
-    # dbdir is only supplied when AdminTool.do_initialise() invokes this
-    # function and the value is fetched from the tracker config which has
-    # already determined the correct path. This is bit of a hack, but it is
-    # likely this function will be removed in v1.6
-    if not dbdir:
-        dbdir = os.path.join(instance_home, 'db')
-    if not os.path.exists(dbdir):
-        os.makedirs(dbdir)
-    f = open(os.path.join(dbdir, 'backend_name'), 'w')
-    f.write(backend+'\n')
-    f.close()
-
-
-
 # vim: set filetype=python sts=4 sw=4 et si :

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