{"action":"created","comment":{"url":"https://api.github.com/repos/cyclus/cyclus.github.com/pulls/comments/29779641","id":29779641,"diff_hunk":"@@ -181,6 +330,18 @@ def append_statevars(self):\n                 self.lines.append(ind + ':{0}: {1}'.format(key, val))\n             self.lines.append('')\n \n+            self.lines += ['', ind + '.. code-block:: xml', '']\n+            schemalines = buildsample(t, schematype, uitype, labels).split('\\n')\n+            previndent = ''\n+            for l in schemalines:\n+                if len(l.strip()) > 0:\n+                    if l.strip() == '...':\n+                        l = previndent + l.strip()\n+                    self.lines.append(ind + '    ' + l)\n+                    previndent = ' '*(len(l) - len(l.lstrip()))","path":"source/cyclusagent.py","position":null,"original_position":191,"commit_id":"269df7b0bf028401ebd023d7b8a077c214eb6c55","original_commit_id":"0e80103c121aaa67ddda8cad851f5cec19059dee","user":{"login":"rwcarlsen","id":1351242,"avatar_url":"https://avatars.githubusercontent.com/u/1351242?v=3","gravatar_id":"","url":"https://api.github.com/users/rwcarlsen","html_url":"https://github.com/rwcarlsen","followers_url":"https://api.github.com/users/rwcarlsen/followers","following_url":"https://api.github.com/users/rwcarlsen/following{/other_user}","gists_url":"https://api.github.com/users/rwcarlsen/gists{/gist_id}","starred_url":"https://api.github.com/users/rwcarlsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwcarlsen/subscriptions","organizations_url":"https://api.github.com/users/rwcarlsen/orgs","repos_url":"https://api.github.com/users/rwcarlsen/repos","events_url":"https://api.github.com/users/rwcarlsen/events{/privacy}","received_events_url":"https://api.github.com/users/rwcarlsen/received_events","type":"User","site_admin":false},"body":"done.","created_at":"2015-05-06T17:10:57Z","updated_at":"2015-05-06T17:10:57Z","html_url":"https://github.com/cyclus/cyclus.github.com/pull/139#discussion_r29779641","pull_request_url":"https://api.github.com/repos/cyclus/cyclus.github.com/pulls/139","_links":{"self":{"href":"https://api.github.com/repos/cyclus/cyclus.github.com/pulls/comments/29779641"},"html":{"href":"https://github.com/cyclus/cyclus.github.com/pull/139#discussion_r29779641"},"pull_request":{"href":"https://api.github.com/repos/cyclus/cyclus.github.com/pulls/139"}}},"pull_request":{"url":"https://api.github.com/repos/cyclus/cyclus.github.com/pulls/139","id":34825381,"html_url":"https://github.com/cyclus/cyclus.github.com/pull/139","diff_url":"https://github.com/cyclus/cyclus.github.com/pull/139.diff","patch_url":"https://github.com/cyclus/cyclus.github.com/pull/139.patch","issue_url":"https://api.github.com/repos/cyclus/cyclus.github.com/issues/139","number":139,"state":"open","locked":false,"title":"[release branch] better auto-generated agent docs","user":{"login":"rwcarlsen","id":1351242,"avatar_url":"https://avatars.githubusercontent.com/u/1351242?v=3","gravatar_id":"","url":"https://api.github.com/users/rwcarlsen","html_url":"https://github.com/rwcarlsen","followers_url":"https://api.github.com/users/rwcarlsen/followers","following_url":"https://api.github.com/users/rwcarlsen/following{/other_user}","gists_url":"https://api.github.com/users/rwcarlsen/gists{/gist_id}","starred_url":"https://api.github.com/users/rwcarlsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwcarlsen/subscriptions","organizations_url":"https://api.github.com/users/rwcarlsen/orgs","repos_url":"https://api.github.com/users/rwcarlsen/repos","events_url":"https://api.github.com/users/rwcarlsen/events{/privacy}","received_events_url":"https://api.github.com/users/rwcarlsen/received_events","type":"User","site_admin":false},"body":"Sample xml input snippets are generated for each state variable.  The header\r\nfor optional state variables now explicitly says:\r\n\r\n    optional (default=[defualt])\r\n\r\nHere is a screenshot:\r\n\r\n![snapshot1](https://cloud.githubusercontent.com/assets/1351242/7495898/1b71480a-f3ce-11e4-9eeb-71364fb0aa73.png)\r\n","created_at":"2015-05-06T14:59:03Z","updated_at":"2015-05-06T17:10:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87abb5433517d67efd4882d15caba2aac85e0c79","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cyclus/cyclus.github.com/pulls/139/commits","review_comments_url":"https://api.github.com/repos/cyclus/cyclus.github.com/pulls/139/comments","review_comment_url":"https://api.github.com/repos/cyclus/cyclus.github.com/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cyclus/cyclus.github.com/issues/139/comments","statuses_url":"https://api.github.com/repos/cyclus/cyclus.github.com/statuses/269df7b0bf028401ebd023d7b8a077c214eb6c55","head":{"label":"rwcarlsen:agent-docs","ref":"agent-docs","sha":"269df7b0bf028401ebd023d7b8a077c214eb6c55","user":{"login":"rwcarlsen","id":1351242,"avatar_url":"https://avatars.githubusercontent.com/u/1351242?v=3","gravatar_id":"","url":"https://api.github.com/users/rwcarlsen","html_url":"https://github.com/rwcarlsen","followers_url":"https://api.github.com/users/rwcarlsen/followers","following_url":"https://api.github.com/users/rwcarlsen/following{/other_user}","gists_url":"https://api.github.com/users/rwcarlsen/gists{/gist_id}","starred_url":"https://api.github.com/users/rwcarlsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwcarlsen/subscriptions","organizations_url":"https://api.github.com/users/rwcarlsen/orgs","repos_url":"https://api.github.com/users/rwcarlsen/repos","events_url":"https://api.github.com/users/rwcarlsen/events{/privacy}","received_events_url":"https://api.github.com/users/rwcarlsen/received_events","type":"User","site_admin":false},"repo":{"id":11259077,"name":"cyclus.github.com","full_name":"rwcarlsen/cyclus.github.com","owner":{"login":"rwcarlsen","id":1351242,"avatar_url":"https://avatars.githubusercontent.com/u/1351242?v=3","gravatar_id":"","url":"https://api.github.com/users/rwcarlsen","html_url":"https://github.com/rwcarlsen","followers_url":"https://api.github.com/users/rwcarlsen/followers","following_url":"https://api.github.com/users/rwcarlsen/following{/other_user}","gists_url":"https://api.github.com/users/rwcarlsen/gists{/gist_id}","starred_url":"https://api.github.com/users/rwcarlsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwcarlsen/subscriptions","organizations_url":"https://api.github.com/users/rwcarlsen/orgs","repos_url":"https://api.github.com/users/rwcarlsen/repos","events_url":"https://api.github.com/users/rwcarlsen/events{/privacy}","received_events_url":"https://api.github.com/users/rwcarlsen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rwcarlsen/cyclus.github.com","description":"Landing page repository","fork":true,"url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com","forks_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/forks","keys_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/teams","hooks_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/hooks","issue_events_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/issues/events{/number}","events_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/events","assignees_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/assignees{/user}","branches_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/branches{/branch}","tags_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/tags","blobs_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/statuses/{sha}","languages_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/languages","stargazers_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/stargazers","contributors_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/contributors","subscribers_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/subscribers","subscription_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/subscription","commits_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/contents/{+path}","compare_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/merges","archive_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/downloads","issues_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/issues{/number}","pulls_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/pulls{/number}","milestones_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/milestones{/number}","notifications_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/labels{/name}","releases_url":"https://api.github.com/repos/rwcarlsen/cyclus.github.com/releases{/id}","created_at":"2013-07-08T16:19:25Z","updated_at":"2015-03-30T14:40:42Z","pushed_at":"2015-05-06T17:10:46Z","git_url":"git://github.com/rwcarlsen/cyclus.github.com.git","ssh_url":"git@github.com:rwcarlsen/cyclus.github.com.git","clone_url":"https://github.com/rwcarlsen/cyclus.github.com.git","svn_url":"https://github.com/rwcarlsen/cyclus.github.com","homepage":"http://cyclus.github.com","size":31925,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"source"}},"base":{"label":"cyclus:v1.3.0-release","ref":"v1.3.0-release","sha":"a33074c57a6466e89299c1966e0f1aae81655d01","user":{"login":"cyclus","id":1355686,"avatar_url":"https://avatars.githubusercontent.com/u/1355686?v=3","gravatar_id":"","url":"https://api.github.com/users/cyclus","html_url":"https://github.com/cyclus","followers_url":"https://api.github.com/users/cyclus/followers","following_url":"https://api.github.com/users/cyclus/following{/other_user}","gists_url":"https://api.github.com/users/cyclus/gists{/gist_id}","starred_url":"https://api.github.com/users/cyclus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyclus/subscriptions","organizations_url":"https://api.github.com/users/cyclus/orgs","repos_url":"https://api.github.com/users/cyclus/repos","events_url":"https://api.github.com/users/cyclus/events{/privacy}","received_events_url":"https://api.github.com/users/cyclus/received_events","type":"Organization","site_admin":false},"repo":{"id":3288595,"name":"cyclus.github.com","full_name":"cyclus/cyclus.github.com","owner":{"login":"cyclus","id":1355686,"avatar_url":"https://avatars.githubusercontent.com/u/1355686?v=3","gravatar_id":"","url":"https://api.github.com/users/cyclus","html_url":"https://github.com/cyclus","followers_url":"https://api.github.com/users/cyclus/followers","following_url":"https://api.github.com/users/cyclus/following{/other_user}","gists_url":"https://api.github.com/users/cyclus/gists{/gist_id}","starred_url":"https://api.github.com/users/cyclus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyclus/subscriptions","organizations_url":"https://api.github.com/users/cyclus/orgs","repos_url":"https://api.github.com/users/cyclus/repos","events_url":"https://api.github.com/users/cyclus/events{/privacy}","received_events_url":"https://api.github.com/users/cyclus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cyclus/cyclus.github.com","description":"Landing page repository","fork":false,"url":"https://api.github.com/repos/cyclus/cyclus.github.com","forks_url":"https://api.github.com/repos/cyclus/cyclus.github.com/forks","keys_url":"https://api.github.com/repos/cyclus/cyclus.github.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cyclus/cyclus.github.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cyclus/cyclus.github.com/teams","hooks_url":"https://api.github.com/repos/cyclus/cyclus.github.com/hooks","issue_events_url":"https://api.github.com/repos/cyclus/cyclus.github.com/issues/events{/number}","events_url":"https://api.github.com/repos/cyclus/cyclus.github.com/events","assignees_url":"https://api.github.com/repos/cyclus/cyclus.github.com/assignees{/user}","branches_url":"https://api.github.com/repos/cyclus/cyclus.github.com/branches{/branch}","tags_url":"https://api.github.com/repos/cyclus/cyclus.github.com/tags","blobs_url":"https://api.github.com/repos/cyclus/cyclus.github.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cyclus/cyclus.github.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cyclus/cyclus.github.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/cyclus/cyclus.github.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cyclus/cyclus.github.com/statuses/{sha}","languages_url":"https://api.github.com/repos/cyclus/cyclus.github.com/languages","stargazers_url":"https://api.github.com/repos/cyclus/cyclus.github.com/stargazers","contributors_url":"https://api.github.com/repos/cyclus/cyclus.github.com/contributors","subscribers_url":"https://api.github.com/repos/cyclus/cyclus.github.com/subscribers","subscription_url":"https://api.github.com/repos/cyclus/cyclus.github.com/subscription","commits_url":"https://api.github.com/repos/cyclus/cyclus.github.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/cyclus/cyclus.github.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/cyclus/cyclus.github.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/cyclus/cyclus.github.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/cyclus/cyclus.github.com/contents/{+path}","compare_url":"https://api.github.com/repos/cyclus/cyclus.github.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cyclus/cyclus.github.com/merges","archive_url":"https://api.github.com/repos/cyclus/cyclus.github.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cyclus/cyclus.github.com/downloads","issues_url":"https://api.github.com/repos/cyclus/cyclus.github.com/issues{/number}","pulls_url":"https://api.github.com/repos/cyclus/cyclus.github.com/pulls{/number}","milestones_url":"https://api.github.com/repos/cyclus/cyclus.github.com/milestones{/number}","notifications_url":"https://api.github.com/repos/cyclus/cyclus.github.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cyclus/cyclus.github.com/labels{/name}","releases_url":"https://api.github.com/repos/cyclus/cyclus.github.com/releases{/id}","created_at":"2012-01-28T04:47:13Z","updated_at":"2015-05-06T16:21:10Z","pushed_at":"2015-05-06T17:10:47Z","git_url":"git://github.com/cyclus/cyclus.github.com.git","ssh_url":"git@github.com:cyclus/cyclus.github.com.git","clone_url":"https://github.com/cyclus/cyclus.github.com.git","svn_url":"https://github.com/cyclus/cyclus.github.com","homepage":"http://cyclus.github.com","size":35962,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":16,"forks":11,"open_issues":16,"watchers":7,"default_branch":"source"}},"_links":{"self":{"href":"https://api.github.com/repos/cyclus/cyclus.github.com/pulls/139"},"html":{"href":"https://github.com/cyclus/cyclus.github.com/pull/139"},"issue":{"href":"https://api.github.com/repos/cyclus/cyclus.github.com/issues/139"},"comments":{"href":"https://api.github.com/repos/cyclus/cyclus.github.com/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/cyclus/cyclus.github.com/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/cyclus/cyclus.github.com/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cyclus/cyclus.github.com/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/cyclus/cyclus.github.com/statuses/269df7b0bf028401ebd023d7b8a077c214eb6c55"}}}}