def resolve_document_etag(documents, resource):
 if config.IF_MATCH:
  ignore_fields = config.DOMAIN[resource]['etag_ignore_fields']
  if (not isinstance(documents, list)):
   documents = [documents]
  for document in documents:
   document[config.ETAG] = document_etag(document, ignore_fields=ignore_fields)

def resolve_document_etag ( documents , resource ) : if config . IF_MATCH : ignore_fields = config . DOMAIN [ resource ] [ 'etag_ignore_fields' ] if ( not isinstance ( documents , list ) ) : documents = [ documents ] for document in documents : document [ config . ETAG ] = document_etag ( document , ignore_fields = ignore_fields )
adds etags to documents .