Beispiel #1
0
	def __init__(self, namespace, action, context):
		threading.Thread.__init__(self)
		print "ConfigRW.init(",namespace,",",action,") ", threading.current_thread()
		self.namespace = namespace
		self.action = action
		self.context = context
		self.filename = join(persistance.init_dir(),"config")
		self.start()
Beispiel #2
0
	def __init__(self, subfolder = ""):
		self.dir = os.path.join(persistance.init_dir(), "cache/", subfolder)
		print "Cache at ",self.dir
		self.items = {}