Skip to content

Commit

Permalink
add impl note about required args + add req although installed to avo…
Browse files Browse the repository at this point in the history
…id ide complaining
  • Loading branch information
fmigneault committed Sep 20, 2019
1 parent 5d10b16 commit 1ba1dbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions magpie/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def __acl__(self):
cache_regions['acl'] = {'enabled': False}
return self._get_acl_cached(self.service.resource_id, self.request.user)

# noinspection PyUnusedLocal
# parameters required to preserve caching of corresponding resource-id/user called
@cache_region('acl')
def _get_acl_cached(self, service_id, user):
"""Beaker will cache this method based on the service id and the user.
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
alembic==0.9.6
bcrypt==3.1.6
beaker
colander
cornice
cornice_swagger>=0.7.0
Expand Down

0 comments on commit 1ba1dbd

Please sign in to comment.