Beispiel #1
0
 def deletekill(self, kid):
     try:
         eid = Kill.get(kid).event.id
     except SQLObjectNotFound:
         flash("Error: you tried to delete a kill that doesn't exist!")
         raise redirect(url("/news"))
     Kill.delete(kid)
     self.updatescores()
     flash("Kill removed!")
     raise redirect(url("/editevent/" + str(eid)))
Beispiel #2
0
    def deletekill(self,kid):
        try:
	    eid=Kill.get(kid).event.id
	except SQLObjectNotFound:
	    flash("Error: you tried to delete a kill that doesn't exist!")
	    raise redirect(url("/news"))
        Kill.delete(kid)
	self.updatescores()
	flash("Kill removed!")
	raise redirect(url("/editevent/"+str(eid)))