Exemplo n.º 1
0
	def sleep(self,trans):
		SecurePage.sleep(self,trans)
		try:
			self.db.Close()
			del self.db
		except AttributeError:
			pass
Exemplo n.º 2
0
	def sleep(self, transaction):
		
		# Make sure that we don't edit the page all the time
		
		if self.session().hasValue("editjob"):
			self.session().delValue("editjob")
			
		# Move along
			
		SecurePage.sleep(self, transaction)
Exemplo n.º 3
0
    def sleep(self, trans):
        '''	Clean up.  Close the connection to the DB and delete the class variables.
			Note the AttributeError occurs when a user is logging in fresh to a page that 
			never went to sleep. Also, we don't delete the product information since they
			may be in use by another user.
		'''
        SecurePage.sleep(self, trans)
        try:
            self.releaseDB.Close()
            del self.releaseDB
            del self.log
        except AttributeError:
            pass