Menu
  • HOME
  • TAGS

Python: String to HTML5 table without external modules

python,html,html5,confluence,confluence-rest-api

How about something like this: string = "header1 header2 header3 header4 header5 <br \> 10 15 20 27 to/path/foo.c <br \> 7 67 10 22 to/path/boo.c" rows = string.split("<br \>") data = map(lambda r: r.split(" "), rows) html_rows = map(lambda r: "<td>" + "</td><td>".join(r) + "</td>", data) html_table = "<table><tr>"...

How do you post a comment to Atlassian confluence using their REST api?

rest,confluence,confluence-rest-api

this should work: {"type":"comment", "container":{ "id":"[PARENT_ID]", "type":"page", "status":"current" }, "body":{ "storage":{ "value":"[COMMENT_BODY]", "representation":"storage" } } } ...

How to get Atlassian Confluence Space permissions by REST API?

java,confluence,atlassian,confluence-rest-api

I can see virtually no documentation about this, however having looked at the Confluence REST API Browser, I've got a working example below. You have to be a Confluence admin, or space admin for the space... POST: http://localhost:1990/confluence/rpc/json-rpc/confluenceservice-v2/getSpacePermissionSets BODY: [ "ds" ] RESPONSE: [ { "type": "SETSPACEPERMISSIONS", "spacePermissions": [ {...