- t = Template(CONF_TEMPLATE)
- text = t.substitute({'BASEDIR': os.getcwd(),
- 'WORKDIR': workdir,
- 'ADMINDB': admin_db,
- 'USERSDB': users_db})
+ trans_db = os.path.join(workdir, 'transactions.sqlite')
+
+ with open(CONF_TEMPLATE) as f:
+ conf_template = f.read()
+ t = Template(conf_template)
+ text = t.substitute({'debugging': 'True',
+ 'instance': 'idp',
+ 'staticdir': os.getcwd(),
+ 'datadir': workdir,
+ 'admindb': admin_db,
+ 'usersdb': users_db,
+ 'transdb': trans_db,
+ 'sesstype': 'file',
+ 'sessopt': 'path',
+ 'sessval': os.path.join(workdir, 'sessions'),
+ 'secure': 'False',
+ })