(doc_id)
Looks up and wraps a sync log, using the class based on the 'log_format' attribute.
    Defaults to the existing legacy SyncLog class.

    Raises MissingSyncLog if doc_id is not found
Looks up and wraps a sync log, using the class based on the 'log_format' attribute.
    Defaults to the existing legacy SyncLog class.
Looks up and wraps a sync log using the class based on the log_format attribute . Defaults to the existing legacy SyncLog class .
def get_properly_wrapped_sync_log(doc_id):
    """
    Looks up and wraps a sync log, using the class based on the 'log_format' attribute.
    Defaults to the existing legacy SyncLog class.

    Raises MissingSyncLog if doc_id is not found
    """
    try:
        synclog = SyncLogSQL.objects.filter(synclog_id=doc_id).first()
        if synclog:
            return properly_wrap_sync_log(synclog.doc, synclog)
    except ValidationError:
        # this occurs if doc_id is not a valid UUID
        pass
    raise MissingSyncLog("A SyncLogSQL object with this synclog_id ({})is not found".format(
        doc_id))
def get_properly_wrapped_sync_log ( doc_id ) : try : synclog = SyncLogSQL . objects . filter ( synclog_id = doc_id ) . first ( ) if synclog : return properly_wrap_sync_log ( synclog . doc , synclog ) except ValidationError : # this occurs if doc_id is not a valid UUID pass raise MissingSyncLog ( "A SyncLogSQL object with this synclog_id ({})is not found" . format ( doc_id ) )