Example #1
0
def loader_with_logger():
    #
    # Codes of action:
    #   100 - confirmation for an order
    #   203 - base calculation
    #   204 - custom calculation
    #   205 - save of state
    #   206 - finalize (internal)
    #   207 - order
    #   208 - close of session
    #   209 - cancel (Flash only)
    #   210 - continue (Flash only)
    #   301 - load log page
    #   302 - load selected log item content
    #   303 - load and refresh saved calculation
    #   304 - custom calculation (log+db)
    #   305 - price statistics
    #   307 - order (log+db)
    #   308 - remove log item
    #
    try:
        return loader()
    except:
        #traceback.print_exc(file=open(errorlog, 'a'))
        print_exception()
        raise
Example #2
0
def log_with_logger():
    if not request.referrer:
        return redirect(url_for('_ext', _method='GET', **request.args)) # values , _external=True

    try:
        return log(0)
    except:
        print_exception()
        raise
Example #3
0
def index_with_logger(mode, document=None, region=None, country=None, user=None):
    try:
        return index(mode, document=document, region=region, country=country, user=user)
    except:
        print_exception()
        raise