stub redis support
This commit is contained in:
		@@ -2,10 +2,17 @@ import os
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
import flask
 | 
			
		||||
import redis
 | 
			
		||||
 | 
			
		||||
app = flask.Flask("seagull-game", root_path="/app")
 | 
			
		||||
orig_url_for = app.url_for
 | 
			
		||||
 | 
			
		||||
#REDIS_HOST="stub-implementation.example.net"
 | 
			
		||||
#REDIS_PORT=6379
 | 
			
		||||
#REDIS_USER="seagull"
 | 
			
		||||
#REDIS_PASS="i am not a real password"
 | 
			
		||||
#state_cache = redis.Redis(host=REDIS_HOST, port=REDIS_PORT, username=REDIS_USER, password=REDIS_PASS)
 | 
			
		||||
 | 
			
		||||
def url_for_override(endpoint, *posargs, _anchor=None, _method=None, _scheme=None, _external=None, self=app, **values):
 | 
			
		||||
    if endpoint == "static":
 | 
			
		||||
        # bandaid for #1
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user