-
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-26-update-riak-store-and-interface-to-mat…
…ch' into develop
- Loading branch information
Showing
11 changed files
with
226 additions
and
125 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,6 +1,6 @@ | ||
from api_methods import API | ||
from store.memory import OptOutMemory | ||
from store.memory import MemoryOptOutCollection | ||
|
||
app = API(OptOutMemory()) | ||
app = API(MemoryOptOutCollection()) | ||
|
||
app.app.run('localhost', 8080) |
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,20 +1,25 @@ | ||
import zope.interface | ||
|
||
|
||
class IOptOutStore(zope.interface.Interface): | ||
class IOptOutBackend(zope.interface.Interface): | ||
def get_opt_out_collection(owner_id): | ||
""" Return the opt out collection for the specified owner. | ||
:param str owner_id: | ||
The id of the owner of the opt out store. | ||
""" | ||
|
||
|
||
class IOptOutCollection(zope.interface.Interface): | ||
|
||
def get(address_type, address): | ||
""" Retrieve the opt out for an address. """ | ||
pass | ||
|
||
def put(address_type, address): | ||
""" Store a record of an opt out for an address. """ | ||
pass | ||
|
||
def delete(address_type, address): | ||
""" Remove an opt out for an address. """ | ||
pass | ||
|
||
def count(): | ||
""" Return the number of opt outs. """ | ||
pass |
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.