Refactor switches in templates: step 1

This commit is contained in:
Vincent Jacques
2012-05-31 21:53:27 +01:00
parent 0cc1743b3c
commit ca390879f0
37 changed files with 126 additions and 214 deletions
@@ -1,6 +1,6 @@
{% for method in class.methods|dictsort:"name" %}
def {{ method.name|join:"_" }}( {% include "GithubObject.Parameters.py" with function=method only %} ):
{% include "GithubObject.MethodBody.CheckArguments.py" %}
{% include "GithubObject.MethodBody.DoRequest.py" %}
{% include "GithubObject.MethodBody.UseResult.py" %}
{% endfor %}
{% for method in class.methods|dictsort:"name" %}
def {{ method.name|join:"_" }}( {% include "GithubObject.Parameters.py" with function=method only %} ):
{% include "GithubObject.MethodBody.CheckArguments.py" %}
{% include "GithubObject.MethodBody.DoRequest.py" %}
{% include "GithubObject.MethodBody.UseResult.py" %}
{% endfor %}