# Path: core/modules/ini.py
# _CONFIG_ = None
#         _CONFIG_ = configparser.ConfigParser()
# def init(filename):
# def getenv(env_var, default=None):
# def config(section, option, env_var=None, default=None, boolean=False):
# def test():
# 
# Path: core/modules/nominatim.py
# _SEARCH_BASE_URL_ = "http://nominatim.openstreetmap.org/search/"
# _SEARCH_PARAMS_ = {
#     'format': 'json',
#     'addressdetails':'1',
#     'limit':'1'
# }
# _REVERSE_BASE_URL_ = "http://nominatim.openstreetmap.org/reverse"
# _REVERSE_PARAMS_ = {
#     'format': 'json',
#     'addressdetails':'1'
# }
# _OSM_TYPES_ = {
#     'way': 'W',
#     'node': 'N',
#     'relation': 'R'
# }
# def location_for(city, country):
# def reverse_location_for(osm_id, osm_type):
# def test():
# 
# Path: core/modules/validator.py
# _VALIDATORS_ = {
#     'email': re.compile('^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$'),
#     'alphanum': re.compile('^\w+$'),
#     'int': re.compile('^\d+$'),
#     'double': re.compile('^\d+(\.\d+)?$'),
#     'phone': re.compile('^(\+\d{2}(\s)?\d|\d{2})(\s)?(\d{2}(\s)?){4}$'),
#     'year': re.compile('^\d{4}$'),
#     'timestamp': re.compile('^\d{4}(-\d{2}){2}$')
# }
# def validate(field, vtype=None):
# def is_empty(field):
# def check_captcha(request):
# def normalize_filter(search_filter):
# def test():
# 
# Path: core/classes/response.py
# class Response(object):
#     def __init__(self, has_error = True, content = {}, code=None):
#     def json(self):
#     def dumps(self, indent=None):
# def test():
# 
# Path: core/mapif.py
# def _load_user(session, email, sha_pwd):
# def _update_user(session, uid):
# def _check_connected(session):
# def _hash_pwd(plain_pwd):
# def beforeRequest():
# def root():
# def profile():
# def login():
# def logout():
# def password_reset():
# def password_reset_page():
# def search_users():
# def account_create():
# def account_update_names():
# def account_update_email():
# def account_update_password():
# def account_update_promo():
# def account_delete():
# def locations():
# def location_create():
# def location_update():
# def location_delete():
# def page_not_found(msg):
# def run():
# def test():


from core.modules import ini
from core.modules import db
from core.modules import logger
from core.modules import nominatim
from core.modules import validator
from core.classes import response
from core import mapif
#!/usr/bin/python3
# -!- encoding:utf8 -!-
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#    file: test.py
#    date: 2017-09-19
#  author: paul.dautry
# purpose:
#   Module (incomplete :/) testing
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#===============================================================================
# IMPORTS
#===============================================================================
#===============================================================================
# FUNCTIONS
#===============================================================================
#-------------------------------------------------------------------------------
# main
#-------------------------------------------------------------------------------
def main():
    ini.test()
    db.test()
    logger.test()
    nominatim.test()
    response.test()
    timer.test()
    validator.test()

# Path: core/modules/ini.py
# _CONFIG_ = None
#         _CONFIG_ = configparser.ConfigParser()
# def init(filename):
# def getenv(env_var, default=None):
# def config(section, option, env_var=None, default=None, boolean=False):
# def test():
# 
# Path: core/modules/nominatim.py
# _SEARCH_BASE_URL_ = "http://nominatim.openstreetmap.org/search/"
# _SEARCH_PARAMS_ = {
#     'format': 'json',
#     'addressdetails':'1',
#     'limit':'1'
# }
# _REVERSE_BASE_URL_ = "http://nominatim.openstreetmap.org/reverse"
# _REVERSE_PARAMS_ = {
#     'format': 'json',
#     'addressdetails':'1'
# }
# _OSM_TYPES_ = {
#     'way': 'W',
#     'node': 'N',
#     'relation': 'R'
# }
# def location_for(city, country):
# def reverse_location_for(osm_id, osm_type):
# def test():
# 
# Path: core/modules/validator.py
# _VALIDATORS_ = {
#     'email': re.compile('^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$'),
#     'alphanum': re.compile('^\w+$'),
#     'int': re.compile('^\d+$'),
#     'double': re.compile('^\d+(\.\d+)?$'),
#     'phone': re.compile('^(\+\d{2}(\s)?\d|\d{2})(\s)?(\d{2}(\s)?){4}$'),
#     'year': re.compile('^\d{4}$'),
#     'timestamp': re.compile('^\d{4}(-\d{2}){2}$')
# }
# def validate(field, vtype=None):
# def is_empty(field):
# def check_captcha(request):
# def normalize_filter(search_filter):
# def test():
# 
# Path: core/classes/response.py
# class Response(object):
#     def __init__(self, has_error = True, content = {}, code=None):
#     def json(self):
#     def dumps(self, indent=None):
# def test():
# 
# Path: core/mapif.py
# def _load_user(session, email, sha_pwd):
# def _update_user(session, uid):
# def _check_connected(session):
# def _hash_pwd(plain_pwd):
# def beforeRequest():
# def root():
# def profile():
# def login():
# def logout():
# def password_reset():
# def password_reset_page():
# def search_users():
# def account_create():
# def account_update_names():
# def account_update_email():
# def account_update_password():
# def account_update_promo():
# def account_delete():
# def locations():
# def location_create():
# def location_update():
# def location_delete():
# def page_not_found(msg):
# def run():
# def test():


# Path: test.py
from core.modules import ini
from core.modules import db
from core.modules import logger
from core.modules import nominatim
from core.modules import validator
from core.classes import response
from core import mapif

#!/usr/bin/python3
# -!- encoding:utf8 -!-
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#    file: test.py
#    date: 2017-09-19
#  author: paul.dautry
# purpose:
#   Module (incomplete :/) testing
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#===============================================================================
# IMPORTS
#===============================================================================
#===============================================================================
# FUNCTIONS
#===============================================================================
#-------------------------------------------------------------------------------
# main
#-------------------------------------------------------------------------------
def main():
    ini.test()
    db.test()
    logger.test()
    nominatim.test()
    response.test()
    timer.test()
    validator.test()

    mapif.test()