Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Storage to allow different backends
I am unable to run Redis in my environment, but am able to run Couchbase and also use local disk storage. I refactored the StorageMixin so that it's abstract and a new setting named STORAGE_BACKEND defines which backend actually handles the persisting of the values. This doesn't introduce anything that's not backwards compatible and allows existing deployments of Will to run unchanged. As part of this I refactored the requirements so that there could be a requirements file for couchbase as well as redis.
- Loading branch information
Evan Borgstrom
committed
May 23, 2015
1 parent
f7c374d
commit 2db0d2b
Showing
18 changed files
with
407 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,6 @@ shelf.db | |
.idea/* | ||
site | ||
docs/.DS_Store | ||
|
||
# VIM swap files | ||
.*.sw[a-z] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
bottle==0.12.7 | ||
clint==0.3.7 | ||
dill==0.2.1 | ||
dnspython==1.12.0 | ||
natural==0.1.5 | ||
requests==2.4.1 | ||
parsedatetime==1.1.2 | ||
pyasn1==0.1.7 | ||
pyasn1-modules==0.0.5 | ||
sleekxmpp==1.3.1 | ||
APScheduler==2.1.2 | ||
CherryPy==3.6.0 | ||
Fabric==1.10.0 | ||
Jinja2==2.7.3 | ||
Markdown==2.3.1 | ||
MarkupSafe==0.23 | ||
PyYAML==3.10 | ||
argh==0.25.0 | ||
args==0.1.0 | ||
ecdsa==0.11 | ||
futures==2.1.6 | ||
ghp-import==0.4.1 | ||
greenlet==0.4.4 | ||
paramiko==1.14.1 | ||
pathtools==0.1.2 | ||
pycrypto==2.6.1 | ||
pytz==2014.7 | ||
six==1.8.0 | ||
tzlocal==1.1.1 | ||
watchdog==0.7.0 | ||
wsgiref==0.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-e git+git://github.com/couchbase/couchbase-python-client#egg=couchbase-python-client | ||
-r requirements.base.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,9 @@ | ||
apscheduler<3.0 | ||
bottle>=0.12.6 | ||
cherrypy | ||
coverage | ||
clint | ||
dill>=0.2b1 | ||
dnspython | ||
jinja2 | ||
hiredis | ||
natural | ||
redis | ||
requests | ||
parsedatetime==1.1.2 | ||
pyasn1 | ||
pyasn1_modules | ||
sleekxmpp>=1.2 | ||
-r requirements.txt | ||
|
||
# Dev only | ||
pyandoc | ||
mkdocs | ||
fabric | ||
flake8 | ||
mock | ||
nose | ||
nose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,3 @@ | ||
bottle==0.12.7 | ||
clint==0.3.7 | ||
dill==0.2.1 | ||
dnspython==1.12.0 | ||
hiredis==0.1.4 | ||
natural==0.1.5 | ||
redis==2.10.3 | ||
requests==2.4.1 | ||
parsedatetime==1.1.2 | ||
pyasn1==0.1.7 | ||
pyasn1-modules==0.0.5 | ||
sleekxmpp==1.3.1 | ||
APScheduler==2.1.2 | ||
CherryPy==3.6.0 | ||
Fabric==1.10.0 | ||
Jinja2==2.7.3 | ||
Markdown==2.3.1 | ||
MarkupSafe==0.23 | ||
PyYAML==3.10 | ||
argh==0.25.0 | ||
args==0.1.0 | ||
ecdsa==0.11 | ||
futures==2.1.6 | ||
ghp-import==0.4.1 | ||
greenlet==0.4.4 | ||
paramiko==1.14.1 | ||
pathtools==0.1.2 | ||
pycrypto==2.6.1 | ||
pytz==2014.7 | ||
six==1.8.0 | ||
tzlocal==1.1.1 | ||
watchdog==0.7.0 | ||
wsgiref==0.1.2 | ||
-r requirements.base.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.