Пример #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)
Пример #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)
Пример #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)
Пример #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)