예제 #1
0
 def get_byid(self, messageid):
     try:
         return Message.get(id=messageid)
     except Message.DoesNotExist:
         return None
예제 #2
0
 def get_bycorrelation(self, correlationid, category):
     try:
         return Message.get(correlationid=correlationid, category=category)
     except Message.DoesNotExist:
         return None