Exemplo n.º 1
0
	def updateAuthority(self, authorityId, text, menuIdList):
		DBConn().begin();
		try:
			DBAuthority.deleteByAuthorityId(authorityId)
			DBAuthority.insrt(text, authorityId, menuIdList)
			DBConn().commit(); 
		except Exception, e:
			print e
			DBConn().rollback();
Exemplo n.º 2
0
	def createAuthority(self, text):
		value = DBAuthority.insrt(text)
		return value