Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
@leplatrem review.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémy HUBSCHER committed Aug 4, 2016
1 parent d6c1d56 commit 579d919
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions kinto_changes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

def includeme(config):
settings = config.get_settings()
resources = aslist(settings.get('event_listeners.changes.collections', []))
collections = aslist(settings.get(
'event_listeners.changes.collections', []))

config.add_api_capability(
"changes",
Expand All @@ -17,4 +18,4 @@ def includeme(config):
" and collection.",
url="http://kinto.readthedocs.io/en/latest/tutorials/"
"synchronisation.html#polling-for-remote-changes",
resources=resources)
collections=collections)
2 changes: 1 addition & 1 deletion tests/test_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_changes_capability_exposed(self):
"description": "Track modifications of records in Kinto and store "
"the collection timestamps into a specific bucket "
"and collection.",
"resources": [u'/buckets/blocklists'],
"collections": [u'/buckets/blocklists'],
"url": "http://kinto.readthedocs.io/en/latest/tutorials/"
"synchronisation.html#polling-for-remote-changes"
}
Expand Down

0 comments on commit 579d919

Please sign in to comment.