forked from irods/irods_docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate_dynamic_peps_md.py
More file actions
22 lines (19 loc) · 893 Bytes
/
generate_dynamic_peps_md.py
File metadata and controls
22 lines (19 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import json
d = json.load(open('dynamic_peps.json'))
for g in d['sigGroupList']:
print('### {0}'.format(g['groupName']))
print('<table>')
for f in g['sigList']:
params = ""
for p in f["paramList"]:
params += "<br/>{0} {1}".format(p["paramType"], p["paramName"])
params = params[5:]
print("<tr><td>pep_{0}_pre</td><td>{1}</td></tr>".format(f["funcName"],params))
print("<tr><td>pep_{0}_post</td><td>{1}</td></tr>".format(f["funcName"],params))
print("<tr><td>pep_{0}_except</td><td>{1}</td></tr>".format(f["funcName"],params))
print("<tr><td>pep_{0}_finally</td><td>{1}</td></tr>".format(f["funcName"],params))
print('</table>')
print('### microservices')
print('<table>')
print('<tr><td colspan="2">Microservice plugins are not wrapped with dynamic policy enforcement points.</td></tr>')
print('</table>')