Factorize checking of status

This commit is contained in:
Vincent Jacques
2012-06-03 11:33:37 +02:00
parent a77b972dd5
commit d261b4ba46
27 changed files with 196 additions and 367 deletions
@@ -38,7 +38,11 @@
}
{% endif %}
status, headers, data = self._request(
{% if method.type.name == "bool" %}
status, headers, data = self._requester.requestRaw(
{% else %}
headers, data = self._requester.requestAndCheck(
{% endif %}
"{{ method.request.verb }}",
{% include "GithubObject.Concatenation.py" with concatenation=method.request.url only %},
{% if method.request.urlParameters or not method.request.postParameters and method.optionalParameters %}