-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating python libraries #110
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
import redis | ||
from redis import Sentinel | ||
|
||
class RedisSession(Session): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... should I use this when I integrate redis with Uber to store global session vars?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can probably just use the redis library directly. In this case I ended up just inlining the cherrys package (Which previously we installed) since it's all of ~100 lines and we needed some changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a couple questions but this looks good to me!
@@ -176,7 +176,7 @@ def _ws_url(host, rpc_opts): | |||
Given a hostname and set of config options returned by _rpc_opts, return the | |||
standard URL websocket endpoint for a Sideboard remote service. | |||
""" | |||
return '{protocol}://{host}/wsrpc'.format(host=host, protocol='wss' if rpc_opts['ca'] else 'ws') | |||
return '{protocol}://{host}/ws'.format(host=host, protocol='wss' if rpc_opts['ca'] else 'ws') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this break any third-party apps?
sideboard/server.py
Outdated
raise cherrypy.HTTPError(401, 'not logged in') | ||
|
||
|
||
@render_with_templates(config['template_dir']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this all being ripped out or just moved?
This PR updates all python libraries to their latest versions.