# Path: weckan/model.py
# DB = meta.Session
# class Package(CkanPackage):
# class Tag(CkanTag):
# class User(CkanUser):
#     def get_url(self, ctx, *path, **query):
#     def display_name(self):
#     def active_resources(self):
#     def slug_to_name(cls, value, state = None):
#     def organizations(self):
# 
# Path: weckan/model.py
# DB = meta.Session
# class Package(CkanPackage):
# class Tag(CkanTag):
# class User(CkanUser):
#     def get_url(self, ctx, *path, **query):
#     def display_name(self):
#     def active_resources(self):
#     def slug_to_name(cls, value, state = None):
#     def organizations(self):
# 
# Path: weckan/model.py
# DB = meta.Session
# class Package(CkanPackage):
# class Tag(CkanTag):
# class User(CkanUser):
#     def get_url(self, ctx, *path, **query):
#     def display_name(self):
#     def active_resources(self):
#     def slug_to_name(cls, value, state = None):
#     def organizations(self):


import logging
from sqlalchemy import orm
from sqlalchemy.sql import func, desc, null, and_, distinct
from ckanext.etalab.model import CertifiedPublicService
from weckan import model
from weckan.model import Package, Member, Group, User, Related, Role
from weckan.model import RelatedDataset, PackageRelationship, PackageRole
# -*- coding: utf-8 -*-
from __future__ import unicode_literals





DB = model.meta.Session

log = logging.getLogger(__name__)

FORK_COMMENT = 'Fork'



# Path: weckan/model.py
# DB = meta.Session
# class Package(CkanPackage):
# class Tag(CkanTag):
# class User(CkanUser):
#     def get_url(self, ctx, *path, **query):
#     def display_name(self):
#     def active_resources(self):
#     def slug_to_name(cls, value, state = None):
#     def organizations(self):
# 
# Path: weckan/model.py
# DB = meta.Session
# class Package(CkanPackage):
# class Tag(CkanTag):
# class User(CkanUser):
#     def get_url(self, ctx, *path, **query):
#     def display_name(self):
#     def active_resources(self):
#     def slug_to_name(cls, value, state = None):
#     def organizations(self):
# 
# Path: weckan/model.py
# DB = meta.Session
# class Package(CkanPackage):
# class Tag(CkanTag):
# class User(CkanUser):
#     def get_url(self, ctx, *path, **query):
#     def display_name(self):
#     def active_resources(self):
#     def slug_to_name(cls, value, state = None):
#     def organizations(self):


# Path: weckan/queries.py
import logging
from sqlalchemy import orm
from sqlalchemy.sql import func, desc, null, and_, distinct
from ckanext.etalab.model import CertifiedPublicService
from weckan import model
from weckan.model import Package, Member, Group, User, Related, Role
from weckan.model import RelatedDataset, PackageRelationship, PackageRole

# -*- coding: utf-8 -*-
from __future__ import unicode_literals





DB = model.meta.Session

log = logging.getLogger(__name__)

FORK_COMMENT = 'Fork'



def datasets(private=False):