Created
September 25, 2014 10:27
-
-
Save oiuww09fn/81788f8e1a3d58a58265 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% had_seen = [] %> | |
% for i in data: | |
<% | |
if i["method"] in had_seen: | |
continue | |
else: | |
had_seen.append(i["method"]) | |
%>Valid ${i["method"]} | |
[Documentation] | |
%for j in i["cmd"]: | |
<% | |
import re | |
tmp = j.split() | |
for k, v in enumerate(tmp): | |
if "<" in v: | |
tmp[k] = " ".join([v.strip("<>"), v]) | |
j = " ".join(tmp) | |
tmp = " ".join(["...", "- %s" % j]) | |
%>${tmp} | |
%endfor | |
[Tags] ${i["method"]} Valid | |
Log TODO | |
Invalid ${i["method"]} | |
[Documentation] | |
%for j in i["cmd"]: | |
<% | |
import re | |
tmp = j.split() | |
for k, v in enumerate(tmp): | |
if "<" in v: | |
tmp[k] = " ".join([v.strip("<>"), v]) | |
j = " ".join(tmp) | |
tmp = " ".join(["...", "- %s" % j]) | |
%>${tmp} | |
%endfor | |
[Tags] ${i["method"]} Invalid | |
Log TODO | |
% endfor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment