# Path: sesql/config.py
# CONFIG_PATH_FALLBACK = 'sesql_config'
#     CONFIG_PATH = getattr(settings, 'SESQL_CONFIG_PATH', CONFIG_PATH_FALLBACK)
#     CONFIG_PATH = CONFIG_PATH_FALLBACK
# 
# Path: sesql/typemap.py
# class TypeMap(object):
#     def __init__(self):
#     def all_subclasses(klass, done = None):
#     def all_tables(self):
#     def all_classes(self):
#     def all_class_names(self):
#     def get_class_names_for(self, table):
#     def get_classes_for(self, table):
#     def get_table_for(self, klass):
#     def get_class_by_name(self, klass):


import logging
from sesql import config
from sesql.typemap import typemap
    """
    def __init__(self, objs, fields):
        """
        Constructor
        Objs must be a list of (class, id) with optionally extra fields
        """
        self.objs = objs
        self.fields = fields

    def brains(self):
        """
        Get the raw objects from SeSQL index, aka the "brains", as dictionnaries
        """
        for obj in self.objs:
            yield dict(zip(self.fields, obj))

    def count(self):
        """
        Count results
        """
        return len(self.objs)
    __len__ = count

    def iterator(self):
        """
        Iterate on self
        """
        for obj in self.objs:
            try:
                yield self.load(obj)

# Path: sesql/config.py
# CONFIG_PATH_FALLBACK = 'sesql_config'
#     CONFIG_PATH = getattr(settings, 'SESQL_CONFIG_PATH', CONFIG_PATH_FALLBACK)
#     CONFIG_PATH = CONFIG_PATH_FALLBACK
# 
# Path: sesql/typemap.py
# class TypeMap(object):
#     def __init__(self):
#     def all_subclasses(klass, done = None):
#     def all_tables(self):
#     def all_classes(self):
#     def all_class_names(self):
#     def get_class_names_for(self, table):
#     def get_classes_for(self, table):
#     def get_table_for(self, klass):
#     def get_class_by_name(self, klass):


# Path: sesql/results.py
import logging
from sesql import config
from sesql.typemap import typemap

    """
    def __init__(self, objs, fields):
        """
        Constructor
        Objs must be a list of (class, id) with optionally extra fields
        """
        self.objs = objs
        self.fields = fields

    def brains(self):
        """
        Get the raw objects from SeSQL index, aka the "brains", as dictionnaries
        """
        for obj in self.objs:
            yield dict(zip(self.fields, obj))

    def count(self):
        """
        Count results
        """
        return len(self.objs)
    __len__ = count

    def iterator(self):
        """
        Iterate on self
        """
        for obj in self.objs:
            try:
                yield self.load(obj)

            except config.orm.not_found: