Exemplo n.º 1
0
 def delete_ticket(self, t_id):
     """Deletes the ticket with the given ticket id"""
     atm = AgiloTicketModelManager(self.env)
     ticket = atm.get(tkt_id=t_id)
     try:
         atm.delete(ticket)
     except Exception, e:
         print exception_to_unicode(e)
Exemplo n.º 2
0
 def delete_ticket(self, t_id):
     """Deletes the ticket with the given ticket id"""
     atm = AgiloTicketModelManager(self.env)
     ticket = atm.get(tkt_id=t_id)
     try:
         atm.delete(ticket)
     except Exception, e:
         print exception_to_unicode(e)
Exemplo n.º 3
0
 def delete_all_tickets(self):
     """Delete all the tickets in the environment"""
     atm = AgiloTicketModelManager(self.env)
     tickets = atm.select()
     for t in tickets:
         try:
             atm.delete(t)
         except Exception, e:
             print exception_to_unicode(e)
Exemplo n.º 4
0
 def delete_all_tickets(self):
     """Delete all the tickets in the environment"""
     atm = AgiloTicketModelManager(self.env)
     tickets = atm.select()
     for t in tickets:
         try:
             atm.delete(t)
         except Exception, e:
             print exception_to_unicode(e)