pyzotero 1.6.3__py3-none-any.whl → 1.6.4__py3-none-any.whl

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.
_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.6.3'
16
- __version_tuple__ = version_tuple = (1, 6, 3)
15
+ __version__ = version = '1.6.4'
16
+ __version_tuple__ = version_tuple = (1, 6, 4)
pyzotero/zotero.py CHANGED
@@ -686,7 +686,7 @@ class Zotero:
686
686
  ),
687
687
  ),
688
688
  headers=headers,
689
- content=json.dumps(payload),
689
+ data=json.dumps(payload),
690
690
  )
691
691
 
692
692
  def new_fulltext(self, since):
@@ -1047,7 +1047,7 @@ class Zotero:
1047
1047
  linked_file
1048
1048
  linked_url
1049
1049
  """
1050
- return self.item_template("attachment&linkMode=" + attachment_type)
1050
+ return self.item_template("attachment", linkmode=attachment_type)
1051
1051
 
1052
1052
  def _attachment(self, payload, parentid=None):
1053
1053
  """
@@ -1097,7 +1097,7 @@ class Zotero:
1097
1097
  "/{t}/{u}/searches".format(t=self.library_type, u=self.library_id),
1098
1098
  ),
1099
1099
  headers=headers,
1100
- content=json.dumps(payload),
1100
+ data=json.dumps(payload),
1101
1101
  )
1102
1102
  self.request = req
1103
1103
  try:
@@ -1299,7 +1299,7 @@ class Zotero:
1299
1299
  self.endpoint,
1300
1300
  "/{t}/{u}/items".format(t=self.library_type, u=self.library_id),
1301
1301
  ),
1302
- content=to_send,
1302
+ data=to_send,
1303
1303
  headers=dict(headers),
1304
1304
  )
1305
1305
  self.request = req
@@ -1330,7 +1330,7 @@ class Zotero:
1330
1330
  t=self.library_type, u=self.library_id, v=value
1331
1331
  ),
1332
1332
  ),
1333
- content=payload,
1333
+ data=payload,
1334
1334
  headers=dict(uheaders),
1335
1335
  )
1336
1336
  self.request = presp
@@ -1374,7 +1374,7 @@ class Zotero:
1374
1374
  "/{t}/{u}/collections".format(t=self.library_type, u=self.library_id),
1375
1375
  ),
1376
1376
  headers=headers,
1377
- content=json.dumps(payload),
1377
+ data=json.dumps(payload),
1378
1378
  )
1379
1379
  self.request = req
1380
1380
  try:
@@ -1407,7 +1407,7 @@ class Zotero:
1407
1407
  ),
1408
1408
  ),
1409
1409
  headers=headers,
1410
- content=json.dumps(payload),
1410
+ data=json.dumps(payload),
1411
1411
  )
1412
1412
 
1413
1413
  def attachment_simple(self, files, parentid=None):
@@ -1465,7 +1465,7 @@ class Zotero:
1465
1465
  ),
1466
1466
  ),
1467
1467
  headers=headers,
1468
- content=json.dumps(to_send),
1468
+ data=json.dumps(to_send),
1469
1469
  )
1470
1470
 
1471
1471
  def update_items(self, payload):
@@ -1483,7 +1483,7 @@ class Zotero:
1483
1483
  self.endpoint,
1484
1484
  "/{t}/{u}/items/".format(t=self.library_type, u=self.library_id),
1485
1485
  ),
1486
- content=json.dumps(chunk),
1486
+ data=json.dumps(chunk),
1487
1487
  )
1488
1488
  self.request = req
1489
1489
  try:
@@ -1512,7 +1512,7 @@ class Zotero:
1512
1512
  t=self.library_type, u=self.library_id
1513
1513
  ),
1514
1514
  ),
1515
- content=json.dumps(chunk),
1515
+ data=json.dumps(chunk),
1516
1516
  )
1517
1517
  self.request = req
1518
1518
  try:
@@ -1543,7 +1543,7 @@ class Zotero:
1543
1543
  t=self.library_type, u=self.library_id, i=ident
1544
1544
  ),
1545
1545
  ),
1546
- content=json.dumps({"collections": modified_collections}),
1546
+ data=json.dumps({"collections": modified_collections}),
1547
1547
  headers=headers,
1548
1548
  )
1549
1549
 
@@ -1568,7 +1568,7 @@ class Zotero:
1568
1568
  t=self.library_type, u=self.library_id, i=ident
1569
1569
  ),
1570
1570
  ),
1571
- content=json.dumps({"collections": modified_collections}),
1571
+ data=json.dumps({"collections": modified_collections}),
1572
1572
  headers=headers,
1573
1573
  )
1574
1574
 
@@ -1932,14 +1932,14 @@ class Zupload:
1932
1932
  child["parentItem"] = self.parentid
1933
1933
  to_send = json.dumps(self.payload)
1934
1934
  self.zinstance._check_backoff()
1935
- req = self.client.post(
1935
+ req = self.zinstance.client.post(
1936
1936
  url=build_url(
1937
1937
  self.zinstance.endpoint,
1938
1938
  liblevel.format(
1939
1939
  t=self.zinstance.library_type, u=self.zinstance.library_id
1940
1940
  ),
1941
1941
  ),
1942
- content=to_send,
1942
+ data=to_send,
1943
1943
  headers=headers,
1944
1944
  )
1945
1945
  try:
@@ -1988,7 +1988,7 @@ class Zupload:
1988
1988
  i=reg_key,
1989
1989
  ),
1990
1990
  ),
1991
- content=data,
1991
+ data=data,
1992
1992
  headers=auth_headers,
1993
1993
  )
1994
1994
  try:
@@ -2052,7 +2052,7 @@ class Zupload:
2052
2052
  i=reg_key,
2053
2053
  ),
2054
2054
  ),
2055
- content=reg_data,
2055
+ data=reg_data,
2056
2056
  headers=dict(reg_headers),
2057
2057
  )
2058
2058
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyzotero
3
- Version: 1.6.3
3
+ Version: 1.6.4
4
4
  Summary: Python wrapper for the Zotero API
5
5
  Author-email: Stephan Hügel <urschrei@gmail.com>
6
6
  License: # Blue Oak Model License
@@ -0,0 +1,10 @@
1
+ _version.py,sha256=nUUf9xc-xNn7sMTK7c2rpMt1p2OZlNNmLiVGIkTETu8,411
2
+ pyzotero/__init__.py,sha256=5QI4Jou9L-YJAf_oN9TgRXVKgt_Unc39oADo2Ch8bLI,243
3
+ pyzotero/zotero.py,sha256=bPWHCgUbom96ijwM-ImEMtN91A6YajlmZHyx4I8GYPU,76374
4
+ pyzotero/zotero_errors.py,sha256=UPhAmf2K05cnoeIl2wjufWQedepg7vBKb-ShU0TdlL4,2582
5
+ pyzotero-1.6.4.dist-info/AUTHORS,sha256=ZMicxg7lRScOYbxzMPznlzMbmrFIUIHwg-NvljEMbRQ,110
6
+ pyzotero-1.6.4.dist-info/LICENSE.md,sha256=bhy1CPMj1zWffD9YifFmSeBzPylsrhb1qP8OCEx5Etw,1550
7
+ pyzotero-1.6.4.dist-info/METADATA,sha256=Lft4hiPbO-zeImbXKm38aBGcxo2DnU6ue36j5UAwpN4,7290
8
+ pyzotero-1.6.4.dist-info/WHEEL,sha256=A3WOREP4zgxI0fKrHUG8DC8013e3dK3n7a6HDbcEIwE,91
9
+ pyzotero-1.6.4.dist-info/top_level.txt,sha256=BOPNkPk5VtNDCy_li7Xftx6k0zG8STGxh-KgckcxLEw,18
10
+ pyzotero-1.6.4.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- _version.py,sha256=mQ_8947spH9F9E4bJgRMJ3LZK_sGORi1ak9UVDzTrr8,411
2
- pyzotero/__init__.py,sha256=5QI4Jou9L-YJAf_oN9TgRXVKgt_Unc39oADo2Ch8bLI,243
3
- pyzotero/zotero.py,sha256=xR7pbpvNjhLteNWfUUe56WmVEy73I0YsqcoXnW2LWhc,76408
4
- pyzotero/zotero_errors.py,sha256=UPhAmf2K05cnoeIl2wjufWQedepg7vBKb-ShU0TdlL4,2582
5
- pyzotero-1.6.3.dist-info/AUTHORS,sha256=ZMicxg7lRScOYbxzMPznlzMbmrFIUIHwg-NvljEMbRQ,110
6
- pyzotero-1.6.3.dist-info/LICENSE.md,sha256=bhy1CPMj1zWffD9YifFmSeBzPylsrhb1qP8OCEx5Etw,1550
7
- pyzotero-1.6.3.dist-info/METADATA,sha256=_sSykeMd0j3ndkriUjdoKsCain3uIxMhAqSY9vhnlm8,7290
8
- pyzotero-1.6.3.dist-info/WHEEL,sha256=A3WOREP4zgxI0fKrHUG8DC8013e3dK3n7a6HDbcEIwE,91
9
- pyzotero-1.6.3.dist-info/top_level.txt,sha256=BOPNkPk5VtNDCy_li7Xftx6k0zG8STGxh-KgckcxLEw,18
10
- pyzotero-1.6.3.dist-info/RECORD,,