(context)
return initiator
Collect audit information about the request used for CADF.

    :param context: Request context
    :returns: Auditing data about the request
    :rtype: :class:'pycadf.Resource'
Collect audit information about the request used for CADF.
Collect audit information about the request used for CADF .
def _get_request_audit_info(context):
    """Collect audit information about the request used for CADF.

    :param context: Request context
    :returns: Auditing data about the request
    :rtype: :class:'pycadf.Resource'
    """
    user_id = None
    project_id = None
    domain_id = None

    if context:
        user_id = context.user_id
        project_id = context.project_id
        domain_id = context.domain_id

    initiator = resource.Resource(typeURI=taxonomy.ACCOUNT_USER)

    if user_id:
        initiator.user_id = user_id

    if project_id:
        initiator.project_id = project_id

    if domain_id:
        initiator.domain_id = domain_id

    return initiator
def _get_request_audit_info ( context ) : user_id = None project_id = None domain_id = None if context : user_id = context . user_id project_id = context . project_id domain_id = context . domain_id initiator = resource . Resource ( typeURI = taxonomy . ACCOUNT_USER ) if user_id : initiator . user_id = user_id if project_id : initiator . project_id = project_id if domain_id : initiator . domain_id = domain_id return initiator