*** empty log message ***

svn path=/trunk/boinc/; revision=2255
This commit is contained in:
Karl Chen 2003-09-04 07:25:26 +00:00
parent 2c58f23917
commit 756f658e0a
3 changed files with 11 additions and 7 deletions

View File

@ -193,6 +193,14 @@ class RunStateFile(XMLConfig):
self.tasks.save()
default_xml = '<boinc></boinc>'
default_config_file = None
def default_config():
'''Reads the default config.xml and returns it.'''
global default_config_file
if not default_config_file:
default_config_file = ConfigFile().read()
return default_config_file
if __name__ == '__main__':
config = ConfigFile().read()
# print "setting config.enabled = True"

View File

@ -600,9 +600,7 @@ def connect(config):
def connect_default_config():
"""Connect using the default config.xml"""
import configxml
config = configxml.ConfigFile().read()
database.connect(config.config)
connect(configxml.default_config().config)
def close():
"""Closes the connection to the sql boinc and deletes the Boincdb object."""

View File

@ -33,12 +33,10 @@ add.py workunit (TODO)
add.py result (TODO) '''
import boinc_path_config
from Boinc import database, db_mid, configxml, util
from Boinc import database, db_mid, util
import sys, os, getopt, md5, time
config = boinc_config.BoincConfig('../../projects/client_test/config.xml').read()
database._connectp('boinc_client_test','','')
database.connect_default_config()
CREATE_TIME = ['?create_time', int(time.time())]