# Path: ckanext/showcase/logic/schema.py
# def showcase_package_list_schema():
#     schema = {
#         'showcase_id': [not_empty, six.text_type,
#                         convert_package_name_or_id_to_id_for_type_showcase]
#     }
#     return schema
# 
# def package_showcase_list_schema():
#     schema = {
#         'package_id': [not_empty, six.text_type,
#                        convert_package_name_or_id_to_id_for_type_dataset]
#     }
#     return schema


import sqlalchemy
import ckan.plugins.toolkit as toolkit
import ckan.lib.dictization.model_dictize as model_dictize
import logging
from ckan.lib.navl.dictization_functions import validate
from ckan.logic import NotAuthorized
from ckanext.showcase.logic.schema import (showcase_package_list_schema,
                                           package_showcase_list_schema)
from ckanext.showcase.model import ShowcasePackageAssociation, ShowcaseAdmin



log = logging.getLogger(__name__)

_select = sqlalchemy.sql.select
_and_ = sqlalchemy.and_



# Path: ckanext/showcase/logic/schema.py
# def showcase_package_list_schema():
#     schema = {
#         'showcase_id': [not_empty, six.text_type,
#                         convert_package_name_or_id_to_id_for_type_showcase]
#     }
#     return schema
# 
# def package_showcase_list_schema():
#     schema = {
#         'package_id': [not_empty, six.text_type,
#                        convert_package_name_or_id_to_id_for_type_dataset]
#     }
#     return schema


# Path: ckanext/showcase/logic/action/get.py
import sqlalchemy
import ckan.plugins.toolkit as toolkit
import ckan.lib.dictization.model_dictize as model_dictize
import logging
from ckan.lib.navl.dictization_functions import validate
from ckan.logic import NotAuthorized
from ckanext.showcase.logic.schema import (showcase_package_list_schema,
                                           package_showcase_list_schema)
from ckanext.showcase.model import ShowcasePackageAssociation, ShowcaseAdmin




log = logging.getLogger(__name__)

_select = sqlalchemy.sql.select
_and_ = sqlalchemy.and_



@toolkit.side_effect_free