# Path: app/helpers/misc.py
# def format_date(d, f):
# def url_quote(url):
# def html_quote(html):
# def url_encode(query, clean=True, doseq=True, **kw):
# def cut_length(s, max=40, tooltip=False):
# def get_nice_url(url):
# def capitalize_first(str):
# def text2html(s):
# def replace_breaks(s):
# def replace_indents(s):
# def replace_links(s):
# def how_long(d):
# def split(pattern, str):
# def sub(pattern, rpl, str):
# def render_form(form, from_input, to_input):
#     def index(inputs, name):
# def get_site_domain():
# 
# Path: app/helpers/utils.py
# def dict_remove(d, *keys):
# def capitalize_first(str):
# def make_unique_md5():
# def get_all_functions(module):
# def sqlands(left, lst):
# def get_ip():
# def store(tablename, _test=False, **values):


import web, os
from app.helpers import misc
from app.helpers import utils
# Author: Alex Ksikes

# This is a sample config file. Complete it and rename the file config.py.



# connect to database
db = web.database(dbn='mysql', db='mlss', user='your username', passwd='your password')

# in development debug error messages and reloader
web.config.debug = True

# in develpment template caching is set to false
cache = False

# global used template functions
globals = utils.get_all_functions(misc)

# the domain where to get the forms from
site_domain = 'your website domain'

# email settings
mail_sender = 'MLSS 2009 <noreply@example.com>'

# set global base template

# Path: app/helpers/misc.py
# def format_date(d, f):
# def url_quote(url):
# def html_quote(html):
# def url_encode(query, clean=True, doseq=True, **kw):
# def cut_length(s, max=40, tooltip=False):
# def get_nice_url(url):
# def capitalize_first(str):
# def text2html(s):
# def replace_breaks(s):
# def replace_indents(s):
# def replace_links(s):
# def how_long(d):
# def split(pattern, str):
# def sub(pattern, rpl, str):
# def render_form(form, from_input, to_input):
#     def index(inputs, name):
# def get_site_domain():
# 
# Path: app/helpers/utils.py
# def dict_remove(d, *keys):
# def capitalize_first(str):
# def make_unique_md5():
# def get_all_functions(module):
# def sqlands(left, lst):
# def get_ip():
# def store(tablename, _test=False, **values):


# Path: config_example.py
import web, os
from app.helpers import misc
from app.helpers import utils

# Author: Alex Ksikes

# This is a sample config file. Complete it and rename the file config.py.



# connect to database
db = web.database(dbn='mysql', db='mlss', user='your username', passwd='your password')

# in development debug error messages and reloader
web.config.debug = True

# in develpment template caching is set to false
cache = False

# global used template functions
globals = utils.get_all_functions(misc)

# the domain where to get the forms from
site_domain = 'your website domain'

# email settings
mail_sender = 'MLSS 2009 <noreply@example.com>'

# set global base template

view = web.template.render('app/views', cache=cache,  globals=globals)