# Path: cloudmining/app/models/items.py
# def get_sphinx_client(query):
# def search(query, offset=0, limit=10, sort_by='', user_pref={}):
# def compute_facet(query, fname, visu_type=''):
# def get_facets_from_cache(query, user_pref={}):
# def setup_user_pref(cl, user_pref):
# def is_sim_query(query, is_active=False):
# def to_sim_query(query):
# 
# Path: cloudmining/app/models/user_pref.py
# def get():
# def reset():
# def get_default(as_module=True):
# 
# Path: cloudmining/lib/paging.py
# def get_paging(start, max_results, query=False, results_per_page=15,
#     window_size=15, max_allowed_results=1000):


import web
import fsphinx
from cloudmining.app.models import items
from cloudmining.app.models import user_pref
from cloudmining.lib import paging
from cloudmining.app.helpers import templating


config = web.config
view = web.config.view


class front_page:
    def GET(self):
        pref = user_pref.reset()

# Path: cloudmining/app/models/items.py
# def get_sphinx_client(query):
# def search(query, offset=0, limit=10, sort_by='', user_pref={}):
# def compute_facet(query, fname, visu_type=''):
# def get_facets_from_cache(query, user_pref={}):
# def setup_user_pref(cl, user_pref):
# def is_sim_query(query, is_active=False):
# def to_sim_query(query):
# 
# Path: cloudmining/app/models/user_pref.py
# def get():
# def reset():
# def get_default(as_module=True):
# 
# Path: cloudmining/lib/paging.py
# def get_paging(start, max_results, query=False, results_per_page=15,
#     window_size=15, max_allowed_results=1000):


# Path: cloudmining/app/controllers/base.py
import web
import fsphinx
from cloudmining.app.models import items
from cloudmining.app.models import user_pref
from cloudmining.lib import paging
from cloudmining.app.helpers import templating



config = web.config
view = web.config.view


class front_page:
    def GET(self):
        pref = user_pref.reset()

        facets = items.get_facets_from_cache('', pref)