Exemplo n.º 1
0
    scheming_group_schema_show,
    scheming_organization_schema_list,
    scheming_organization_schema_show
)
from ckanext.scheming.converters import (
    convert_from_extras_group,
    convert_to_json_if_date,
    convert_to_json_if_datetime
)

import os
import inspect

ignore_missing = get_validator('ignore_missing')
not_empty = get_validator('not_empty')
convert_to_extras = get_converter('convert_to_extras')
convert_from_extras = get_converter('convert_from_extras')

DEFAULT_PRESETS = 'ckanext.scheming:presets.json'

import logging
log = logging.getLogger(__name__)


class _SchemingMixin(object):
    """
    Store single plugin instances in class variable 'instance'

    All plugins below need helpers and template directories, but we should
    only do them once when any plugin is loaded.
    """
Exemplo n.º 2
0
    scheming_load_json,
    govil_email_validator,
)
from ckanext.scheming.logic import (scheming_dataset_schema_list,
                                    scheming_dataset_schema_show,
                                    scheming_group_schema_list,
                                    scheming_group_schema_show,
                                    scheming_organization_schema_list,
                                    scheming_organization_schema_show)
from ckanext.scheming.converters import (convert_from_extras_group,
                                         convert_to_json_if_date,
                                         convert_to_json_if_datetime)

ignore_missing = get_validator('ignore_missing')
not_empty = get_validator('not_empty')
convert_to_extras = get_converter('convert_to_extras')
convert_from_extras = get_converter('convert_from_extras')

DEFAULT_PRESETS = 'ckanext.scheming:presets.json'

log = logging.getLogger(__name__)


class _SchemingMixin(object):
    """
    Store single plugin instances in class variable 'instance'

    All plugins below need helpers and template directories, but we should
    only do them once when any plugin is loaded.
    """
    instance = None