git://git.onelab.eu
/
monitor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
www/printbadnodes.py
[monitor.git]
/
database.py
diff --git
a/database.py
b/database.py
index
3c657fe
..
3b5bd65
100644
(file)
--- a/
database.py
+++ b/
database.py
@@
-12,7
+12,7
@@
except:
import inspect
import shutil
import config
import inspect
import shutil
import config
-import monitorconfig
+import
config as
monitorconfig
DEBUG= 0
PICKLE_PATH=monitorconfig.MONITOR_DATA_ROOT
DEBUG= 0
PICKLE_PATH=monitorconfig.MONITOR_DATA_ROOT
@@
-111,7
+111,10
@@
class SPickle:
raise Exception, "No such file %s" % name
raise Exception, "No such file %s" % name
+ #import traceback
+ #print traceback.print_stack()
#print "loading %s" % self.__file(name, type)
#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)
f = open(self.__file(name, type), 'r')
if type == None:
o = pickle.load(f)