コード例 #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