python-documentcloud 3.3.4__tar.gz → 3.3.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {python-documentcloud-3.3.4/python_documentcloud.egg-info → python-documentcloud-3.3.6}/PKG-INFO +1 -1
  2. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/documentcloud/addon.py +1 -1
  3. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/documentcloud/base.py +8 -2
  4. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6/python_documentcloud.egg-info}/PKG-INFO +1 -1
  5. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/setup.py +1 -1
  6. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/LICENSE +0 -0
  7. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/README.md +0 -0
  8. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/documentcloud/__init__.py +0 -0
  9. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/documentcloud/annotations.py +0 -0
  10. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/documentcloud/client.py +0 -0
  11. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/documentcloud/constants.py +0 -0
  12. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/documentcloud/documents.py +0 -0
  13. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/documentcloud/exceptions.py +0 -0
  14. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/documentcloud/organizations.py +0 -0
  15. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/documentcloud/projects.py +0 -0
  16. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/documentcloud/sections.py +0 -0
  17. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/documentcloud/toolbox.py +0 -0
  18. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/documentcloud/users.py +0 -0
  19. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/python_documentcloud.egg-info/SOURCES.txt +0 -0
  20. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/python_documentcloud.egg-info/dependency_links.txt +0 -0
  21. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/python_documentcloud.egg-info/requires.txt +0 -0
  22. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/python_documentcloud.egg-info/top_level.txt +0 -0
  23. {python-documentcloud-3.3.4 → python-documentcloud-3.3.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-documentcloud
3
- Version: 3.3.4
3
+ Version: 3.3.6
4
4
  Summary: A simple Python wrapper for the DocumentCloud API
5
5
  Home-page: https://github.com/muckrock/python-documentcloud
6
6
  Author: Mitchell Kotler
@@ -243,7 +243,7 @@ class SoftTimeOutAddOn(AddOn):
243
243
  # If documents were passed in by ID, pass in the remaining documents by ID
244
244
  options["documents"] = [d.id for d in self._documents_iter]
245
245
  if include_current:
246
- options["documents"].insert(0, self._current_document)
246
+ options["documents"].insert(0, self._current_document.id)
247
247
  elif self.query:
248
248
  # If documents were passed in by query, get the id from the next
249
249
  # document, and add that in to the data under a reserved name, so
@@ -23,6 +23,7 @@ class APIResults(object):
23
23
  ):
24
24
  if extra is None:
25
25
  extra = {}
26
+ self.extra = extra
26
27
 
27
28
  self.resource = resource
28
29
  self.client = client
@@ -34,7 +35,7 @@ class APIResults(object):
34
35
  self._next = next_
35
36
  self._previous = previous
36
37
  self.results = [
37
- resource(client, merge_dicts(r, extra)) for r in json["results"]
38
+ resource(client, merge_dicts(r, self.extra)) for r in json["results"]
38
39
  ]
39
40
 
40
41
  def __repr__(self):
@@ -66,7 +67,12 @@ class APIResults(object):
66
67
  if url:
67
68
  response = self.client.get(url, full_url=True)
68
69
  return APIResults(
69
- self.resource, self.client, response, next_=next_, previous=previous
70
+ self.resource,
71
+ self.client,
72
+ response,
73
+ extra=self.extra,
74
+ next_=next_,
75
+ previous=previous,
70
76
  )
71
77
  else:
72
78
  return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-documentcloud
3
- Version: 3.3.4
3
+ Version: 3.3.6
4
4
  Summary: A simple Python wrapper for the DocumentCloud API
5
5
  Home-page: https://github.com/muckrock/python-documentcloud
6
6
  Author: Mitchell Kotler
@@ -7,7 +7,7 @@ with open("README.md", "r") as fh:
7
7
 
8
8
  setup(
9
9
  name='python-documentcloud',
10
- version='3.3.4',
10
+ version='3.3.6',
11
11
  description='A simple Python wrapper for the DocumentCloud API',
12
12
  author='Mitchell Kotler',
13
13
  author_email='mitch@muckrock.com',