Exemplo n.º 1
0
    def __init__(self):

        self.dbConnection = databaseConnectionManager()
Exemplo n.º 2
0
__author__ = "Irtaza Safi"
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from SocketServer import ThreadingMixIn
import threading
from databaseConnectionManager import databaseConnectionManager
from VocabularyWord import VocabularyWord
import json
from Mnemonic import Mnemonic
import jsonpickle
from ObjectBuilder import ObjectBuilder
import urllib

HOST_NAME = "192.168.10.3"
PORT = 80

dbConnection = databaseConnectionManager()
objectBuilder = ObjectBuilder()
# sub = Mnemonic(0,0,0,0,0,0,0)


class Handler(BaseHTTPRequestHandler):
    def do_GET(self):
        self.send_response(200)
        self.send_header("Content-type", "text/html")
        self.end_headers()
        message = threading.currentThread().getName()
        print message
        # handle Request
        pathArray = self.path.split("-")

        if pathArray[1] == "loginRequest":
    def __init__(self):

        self.dbConnection = databaseConnectionManager()