We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f616dfd commit fdb1f6eCopy full SHA for fdb1f6e
2 files changed
README.mdown
@@ -23,7 +23,11 @@ Some useful direct links within this section are below:
23
* [Reference: Filter Syntax](https://github.com/shotgunsoftware/python-api/wiki/Reference%3A-Filter-Syntax)
24
25
## Changelog
26
-**v3.0.6 - 2010 Jan 25**
+**v3.0.7 - 2011 Apr 04**
27
+
28
+ + fix: update() method should return a dict object not a list
29
30
+**v3.0.6 - 2011 Jan 25**
31
32
+ optimization: don't request paging_info unless required (and server support is available)
33
shotgun_api3.py
@@ -32,7 +32,7 @@
# https://support.shotgunsoftware.com/forums/48807-developer-api-info
# ---------------------------------------------------------------------------------------------
34
35
-__version__ = "3.0.6"
+__version__ = "3.0.7"
36
37
38
# SUMMARY
@@ -51,14 +51,16 @@
51
- make file fields an http link to the file
52
- add logging functionality
53
- add scrubbing to text data sent to server to make sure it is all valid unicode
54
- - support removing thumbnails / files (can only create or replace them now)
55
"""
56
57
58
# CHANGELOG
59
60
61
-+v3.0.6 - 2010 Jan 25
++v3.0.7 - 2011 Apr 04
62
63
++v3.0.6 - 2011 Jan 25
64
65
66
+v3.0.5 - 2010 Dec 20
@@ -370,7 +372,7 @@ def find(self, entity_type, filters, fields=None, order=None, filter_operator=No
370
372
371
373
filters = new_filters
374
elif filter_operator:
- raise ShotgunError("Deprecated: Use of filter_operator for find() is not valid any more. See the documention on find()")
375
+ raise ShotgunError("Deprecated: Use of filter_operator for find() is not valid in this context. See the documention on find()")
376
377
if retired_only:
378
return_only = 'retired'
@@ -549,8 +551,8 @@ def update(self, entity_type, entity_id, data):
549
551
args["fields"].append( {"field_name":f,"value":v} )
550
552
553
resp = self._api3.update(args)
- records = self._inject_field_values([resp["results"]])
- return records
554
+ record = self._inject_field_values([resp["results"]])[0]
555
+ return record
556
557
def delete(self, entity_type, entity_id):
558
0 commit comments