Skip to content

Commit

Permalink
Merge pull request #99 from Kinto/prepare-0.7.1
Browse files Browse the repository at this point in the history
Prepare 0.7.1
  • Loading branch information
Natim authored Jul 13, 2016
2 parents cf1792b + 8994add commit 1b597fe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog
=========

0.7.1 (2016-07-13)
------------------

**Bug fixes**

- Update the call to the Record resource to use named attributes. (#97)


0.7.0 (2016-06-10)
------------------

Expand Down
4 changes: 2 additions & 2 deletions kinto_attachment/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, request):
super(AttachmentRouteFactory, self).__init__(request)
self.resource_name = 'record'
try:
resource = Record(request, self)
resource = Record(request, context=self)
request.current_resource_name = 'record'
existing = resource.get()
except httpexceptions.HTTPNotFound:
Expand Down Expand Up @@ -87,7 +87,7 @@ def patch_record(record, request):
# Simulate update of fields.
request.validated = record
request.body = json.dumps(record).encode('utf-8')
resource = Record(request, context)
resource = Record(request, context=context)
request.current_resource_name = 'record'
try:
saved = resource.patch()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

setup(
name='kinto-attachment',
version='0.7.0',
version='0.7.1',
description="Attach files to Kinto records",
long_description=readme + '\n\n' + history,
author="Mozilla",
Expand Down

0 comments on commit 1b597fe

Please sign in to comment.