X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=database.py;h=254a5b53105a4a7d1379749d598d5a9c91188e9d;hb=refs%2Fheads%2F1.0;hp=3c657fe19cb578c433a1bf768178cbe79f9ee5db;hpb=c3f2afdc81c6711c3825c82e2cd4970671575438;p=monitor.git diff --git a/database.py b/database.py index 3c657fe..254a5b5 100644 --- a/database.py +++ b/database.py @@ -3,8 +3,8 @@ import sys import pickle noserial=False try: - from PHPSerialize import * - from PHPUnserialize import * + from util.PHPSerialize import * + from util.PHPUnserialize import * except: #print >>sys.stderr, "PHPSerial db type not allowed." noserial=True @@ -12,10 +12,9 @@ except: import inspect import shutil import config -import monitorconfig DEBUG= 0 -PICKLE_PATH=monitorconfig.MONITOR_DATA_ROOT +PICKLE_PATH=config.MONITOR_DATA_ROOT def dbLoad(name, type=None): @@ -112,6 +111,7 @@ class SPickle: #print "loading %s" % self.__file(name, type) + #sys.stderr.write("-----------------------------\n") f = open(self.__file(name, type), 'r') if type == None: o = pickle.load(f)