X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=monitor%2Fdatabase.py;h=e127791393a5a3a386552ae53075dfe108ee5c78;hb=b548c69db3d1f302b4d0d08377f0231eb3c4fd58;hp=3b5bd654e6bb0e9e2fdf87c922a7805108afd8ad;hpb=c45664eb22df318b596ed6c079ee84c66cdbc941;p=monitor.git diff --git a/monitor/database.py b/monitor/database.py index 3b5bd65..e127791 100644 --- a/monitor/database.py +++ b/monitor/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 @@ -15,7 +15,7 @@ import config import config as monitorconfig DEBUG= 0 -PICKLE_PATH=monitorconfig.MONITOR_DATA_ROOT +PICKLE_PATH=config.MONITOR_DATA_ROOT def dbLoad(name, type=None): @@ -90,6 +90,7 @@ class SPickle: Otherwise, it's normal mode, if the file doesn't exist, raise error Load the file """ + print "loading %s" % name if config.debug: if self.exists("debug.%s" % name, type):