Beispiel #1
0
#

import sys, os
import sqlite3

from hashlib import md5
from bwCGI import bwCGI
from bwDB import bwDB
from bwTL import tlFile
from bwConfig import configFile

__version__ = "2.0.1"

# namespace container for global variables
g = dict(
    VERSION = 'db.py {} bwDB {}'.format(__version__, bwDB.version()),
    config_file = 'db.conf',
    template_ext = '.html',
    table_name = 'jurl',
    stacks = dict(
        messages = [],
        errors = [],
        hiddens = []
    )
)

def main():
    init()
    if 'a' in g['vars']: dispatch()
    main_page()
Beispiel #2
0
#Backend

import sys, os
import sqlite3

from hashlib import md5
from bwCGI import bwCGI
from bwDB import bwDB
from bwTL import tlFile
from bwConfig import configFile

__version__ = "2.0.1"

# namespace container for global variables
g = dict(VERSION='db.py {} bwDB {}'.format(__version__, bwDB.version()),
         config_file='db.conf',
         template_ext='.html',
         table_name='jurl',
         stacks=dict(messages=[], errors=[], hiddens=[]))


def main():
    init()
    if 'a' in g['vars']: dispatch()
    main_page()


def init():
    g['cgi'] = bwCGI()
    g['cgi'].send_header()
Beispiel #3
0
import sys
import os
import sqlite3

from hashlib import md5
from bwCGI import bwCGI
from bwDB import bwDB
from bwTL import tlFile
from bwConfig import configFile

__version__ = "2.0.1"

# namespace container for global variables
g = dict(
    VERSION="db.py {} bwDB {}".format(__version__, bwDB.version()),
    config_file="db.conf",
    template_ext=".html",
    table_name="jurl",
    stacks=dict(messages=[], errors=[], hiddens=[]),
)


def main():
    init()
    if "a" in g["vars"]:
        dispatch()
    main_page()


def init():