Skip to content

Commit

Permalink
fixed registration password bug and figured out why you can't click a…
Browse files Browse the repository at this point in the history
…llow in flash
  • Loading branch information
tinabeans committed Apr 4, 2012
1 parent 4770747 commit b2c9b0a
Show file tree
Hide file tree
Showing 9 changed files with 347 additions and 124 deletions.
3 changes: 3 additions & 0 deletions config.py
@@ -1,5 +1,8 @@
import sys

api_key = "6303111"
api_secret = "45b94b30d4f5554ad7445950c13e8d78e099e92e"

if sys.argv[1] == "LIVE":

BASE_URL = 'http://letsgohotpot.com'
Expand Down
14 changes: 14 additions & 0 deletions index.py
Expand Up @@ -17,6 +17,9 @@
# config variables, to make moving to production easier
import config

# opentok
from lib import OpenTokSDK


##############################################################################
# GLOBAL VARIABLES & CONFIG
Expand Down Expand Up @@ -1108,6 +1111,17 @@ def sendCookingReminder():
##############################################################################
# HOTPOT ROOM


@app.route('/getready/<id>')
def showDressingRoom(id):

# generate an opentok session and token to send to the user
opentok_sdk = OpenTokSDK.OpenTokSDK(config.api_key, config.api_secret)
session = opentok_sdk.create_session()
token = opentok_sdk.generate_token(session.session_id)

return render_template('dressingRoom.html', roomId=id, token=token, sessionId=session.session_id)

# takes a meal dictionary and inserts notes into the appropriate step
def insertNotesIntoSteps(meal, notes):

Expand Down
5 changes: 1 addition & 4 deletions socketstuff.py
Expand Up @@ -36,10 +36,7 @@
openTokSessions = {}

# OpenTok setup
api_key = "6303111"
api_secret = "45b94b30d4f5554ad7445950c13e8d78e099e92e"

opentok_sdk = OpenTokSDK.OpenTokSDK(api_key, api_secret)
opentok_sdk = OpenTokSDK.OpenTokSDK(config.api_key, config.api_secret)

# no comment.
tornado.websocket.WebSocketHandler.allow_draft76 = lambda self:True
Expand Down

0 comments on commit b2c9b0a

Please sign in to comment.