Exemplo n.º 1
0
def create(label, plugin_name, options, description=None):
    """
    Creates a new source, that can then be used as a source for certificates.

    :param label: Source common name
    :param description:
    :rtype : Source
    :return: New source
    """
    source = Source(label=label, options=options, plugin_name=plugin_name, description=description)
    return database.create(source)
Exemplo n.º 2
0
def create(label, plugin_name, options, description=None):
    """
    Creates a new source, that can then be used as a source for certificates.

    :param label: Source common name
    :param plugin_name:
    :param options:
    :param description:
    :rtype: Source
    :return: New source
    """
    source = Source(label=label,
                    options=options,
                    plugin_name=plugin_name,
                    description=description)
    log_service.audit_log("create_source", source.label, "Creating new source")
    return database.create(source)