-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/issue-15-infrastructure-for-opt-out-backends' i…
…nto develop
- Loading branch information
Showing
4 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,15 @@ | ||
""" | ||
This is where the description of what an opt out backend should be | ||
capable of will go. Such a description is called an 'interface'. | ||
The package 'zope.interfaces' provides tools for writing these. You | ||
can find documentation at | ||
http://docs.zope.org/zope.interface/README.html#defining-interfaces. | ||
Initially the interface will have just two methods -- one for getting | ||
and opt out and one for setting an opt out. | ||
The implementations of the interfaces should go in memory.py and | ||
riak.py. Start with the memory.py one and leave the Riak one for | ||
later. | ||
""" |
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,9 @@ | ||
""" | ||
This is where we will put the in-memory opt out store that we | ||
will use for testing and simple demos. | ||
Essentially it's the same as the implementation that exists in | ||
api_methods right now (i.e. a list of opt outs in memory), but | ||
it will conform to the interface in backends.interface and | ||
perhaps be a little nicer. | ||
""" |
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,5 @@ | ||
""" | ||
This is where the "real" backend implementation will live. | ||
Not worry about it for the moment. | ||
""" |