8080 > 7099

pull/4/head
Blake DeMarcy 2017-04-05 17:18:12 -05:00
parent 65de379982
commit 7d95094cf5
4 changed files with 6 additions and 5 deletions

View File

@ -4,7 +4,7 @@
(require 'cl) (require 'cl)
(defvar bbj-host "127.0.0.1") (defvar bbj-host "127.0.0.1")
(defvar bbj-port 8080) (defvar bbj-port 7099)
(defvar bbj-width 80) (defvar bbj-width 80)
(defvar bbj-user "anonymous" (defvar bbj-user "anonymous"

View File

@ -15,8 +15,8 @@ class BBJ:
You can call them like `threads, usermap = bbj.thread_index()` You can call them like `threads, usermap = bbj.thread_index()`
__init__ can take a host string and a port value (which can be __init__ can take a host string and a port value (which can be
either int or str). It defaults to "127.0.0.1" and 8080, expanding either int or str). It defaults to "127.0.0.1" and 7099, expanding
out to http://127.0.0.1:8080/. out to http://127.0.0.1:7099/.
Standard library exceptions are used, but several new attributes are Standard library exceptions are used, but several new attributes are
attached to them before raising: .code, .description, and .body. attached to them before raising: .code, .description, and .body.
@ -40,7 +40,7 @@ class BBJ:
See the offical API error documentation for more details. See the offical API error documentation for more details.
""" """
def __init__(self, host="127.0.0.1", port=8080): def __init__(self, host="127.0.0.1", port=7099):
self.base = "http://{}:{}/api/%s".format(host, port) self.base = "http://{}:{}/api/%s".format(host, port)
self.user_name = self.user_auth = None self.user_name = self.user_auth = None
self.send_auth = True self.send_auth = True

View File

@ -5,7 +5,7 @@ from random import choice
from network import BBJ from network import BBJ
import urwid import urwid
network = BBJ(host="127.0.0.1", port=8080) network = BBJ(host="127.0.0.1", port=7099)
obnoxious_logo = """ obnoxious_logo = """
OwO 8 888888888o 8 888888888o 8 8888 1337 OwO 8 888888888o 8 888888888o 8 8888 1337

View File

@ -343,6 +343,7 @@ class API(object):
def api_http_error(status, message, traceback, version): def api_http_error(status, message, traceback, version):
return json.dumps(schema.error(2, "HTTP error {}: {}".format(status, message))) return json.dumps(schema.error(2, "HTTP error {}: {}".format(status, message)))
cherrypy.config.update({'server.socket_port': 7099})
CONFIG = { CONFIG = {
"/": { "/": {