@classmethod
def get(cls, ticket):
    'Gets task for ticket (or None if no matching task).'
    external_task = db.get(_ExternalTask.get_key_by_ticket(ticket))
    if (not external_task):
        return None
    return Task._from_external_task(external_task)
Gets task for ticket (or None if no matching task).
@classmethod
def get(cls, ticket):
    
    external_task = db.get(_ExternalTask.get_key_by_ticket(ticket))
    if (not external_task):
        return None
    return Task._from_external_task(external_task)