[boto] r1341 committed - Fixes issue 279

0 views
Skip to first unread message

codesite...@google.com

unread,
Oct 26, 2009, 9:36:57 PM10/26/09
to boto-...@googlegroups.com
Revision: 1341
Author: Mitch.Garnaat
Date: Mon Oct 26 18:36:43 2009
Log: Fixes issue 279
http://code.google.com/p/boto/source/detail?r=1341

Modified:
/trunk/boto/mturk/connection.py

=======================================
--- /trunk/boto/mturk/connection.py Sun Oct 25 12:29:57 2009
+++ /trunk/boto/mturk/connection.py Mon Oct 26 18:36:43 2009
@@ -176,7 +176,7 @@
self.build_list_params(params,
response_groups, 'ResponseGroup')

# Submit
- return self._process_request('CreateHIT', params, [('Reward',
Price),])
+ return self._process_request('CreateHIT', params, [('HIT', HIT),])

def get_reviewable_hits(self, hit_type=None, status='Reviewable',
sort_by='Expiration',
sort_direction='Ascending',
@@ -374,7 +374,7 @@
"""
body = response.read()
#print body
- if response.status == 200:
+ if '<Errors>' not in body:
rs = ResultSet(marker_elems)
h = handler.XmlHandler(rs, self)
xml.sax.parseString(body, h)

Reply all
Reply to author
Forward
0 new messages