Ejemplo n.º 1
0
import tornado.netutil
import tornado.web
from threading import Thread
from twisted.internet import reactor

from node import upnp
from node.db_store import Obdb
from node.market import Market
from node.transport import CryptoTransportLayer
from node.util import open_default_webbrowser, is_mac
from node.ws import WebSocketHandler
from node import constants

if is_mac():
    from node.util import osx_check_dyld_library_path
    osx_check_dyld_library_path()


class MainHandler(tornado.web.RequestHandler):
    def get(self):
        self.redirect("/html/index.html")


class OpenBazaarStaticHandler(tornado.web.StaticFileHandler):
    def set_extra_headers(self, path):
        self.set_header("X-Frame-Options", "DENY")
        self.set_header("X-Content-Type-Options", "nosniff")


class OpenBazaarContext(object):
    """
Ejemplo n.º 2
0
 def test_osx_dyld_lib_path_true():
     util.osx_check_dyld_library_path()
Ejemplo n.º 3
0
import tornado.netutil
import tornado.web
from threading import Thread
from twisted.internet import reactor

from node import upnp
from node.db_store import Obdb
from node.market import Market
from node.transport import CryptoTransportLayer
from node.util import open_default_webbrowser, is_mac
from node.ws import WebSocketHandler
from node import constants

if is_mac():
    from node.util import osx_check_dyld_library_path
    osx_check_dyld_library_path()


class MainHandler(tornado.web.RequestHandler):
    def get(self):
        self.redirect("/html/index.html")


class OpenBazaarStaticHandler(tornado.web.StaticFileHandler):
    def set_extra_headers(self, path):
        self.set_header("X-Frame-Options", "DENY")
        self.set_header("X-Content-Type-Options", "nosniff")


class OpenBazaarContext(object):
    """