Exemple #1
0
	def __init__(self, id=None, **kwargs):
		for i in self.instanceList : 
			print 'previous-sessions: ', i.id
			if (i.id == id) :
				print 'got instance already!'
		self.instanceList.append(self)
		print 'instance initialised:' + str(len(self.instanceList))
		# kwargs['SESSIONS_PATH'] = os.path.abspath(kwargs['SESSIONS_PATH'])        
		Session.__init__(self, id=id, **kwargs)
		print 'active sessions: ' + str(self.__len__())
Exemple #2
0
 def __init__(self, id=None, **kwargs):
     for i in self.instanceList:
         print 'previous-sessions: ', i.id
         if (i.id == id):
             print 'got instance already!'
     self.instanceList.append(self)
     print 'instance initialised:' + str(len(self.instanceList))
     # kwargs['SESSIONS_PATH'] = os.path.abspath(kwargs['SESSIONS_PATH'])
     Session.__init__(self, id=id, **kwargs)
     print 'active sessions: ' + str(self.__len__())
Exemple #3
0
 def __init__(self, id=None, **kwargs):
     cpSession.__init__(self, id, **kwargs)
	def delete():
		Session.delete()
		print >> f,"luck!"
Exemple #5
0
 def __init__(self, id=None, **kwargs):
     Session.__init__(self, id, **kwargs)
     self.locks={}