{"action":"created","comment":{"url":"https://api.github.com/repos/hydroshare/hydroshare/pulls/comments/45228203","id":45228203,"diff_hunk":"@@ -149,20 +124,50 @@ def get_xml(self):\n         # get the root 'Description' element, which contains all other elements\n         container = RDF_ROOT.find('rdf:Description', namespaces=self.NAMESPACES)\n \n-        # inject raster resource specific metadata elements into container element\n-        fields = ['software_version',\n-                  'software_language',\n-                  'operating_sys',\n-                  'date_released',\n-                  'program_website',\n-                  'software_repo',\n-                  'release_notes',\n-                  'user_manual',\n-                  'theoretical_manual',\n-                  'source_code']\n-\n-        model_program_object = self.program\n-        self.add_metadata_element_to_xml(container, model_program_object, fields)\n+        if self.program:\n+            model_engine = etree.SubElement(container, '{%s}modelEngine' % self.NAMESPACES['hsterms'])","path":"hs_model_program/models.py","position":181,"original_position":181,"commit_id":"1f4982ab84d84fea51f460ae7164f219d41ea514","original_commit_id":"1f4982ab84d84fea51f460ae7164f219d41ea514","user":{"login":"pkdash","id":2523434,"avatar_url":"https://avatars.githubusercontent.com/u/2523434?v=3","gravatar_id":"","url":"https://api.github.com/users/pkdash","html_url":"https://github.com/pkdash","followers_url":"https://api.github.com/users/pkdash/followers","following_url":"https://api.github.com/users/pkdash/following{/other_user}","gists_url":"https://api.github.com/users/pkdash/gists{/gist_id}","starred_url":"https://api.github.com/users/pkdash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkdash/subscriptions","organizations_url":"https://api.github.com/users/pkdash/orgs","repos_url":"https://api.github.com/users/pkdash/repos","events_url":"https://api.github.com/users/pkdash/events{/privacy}","received_events_url":"https://api.github.com/users/pkdash/received_events","type":"User","site_admin":false},"body":"May be better to write a helper function that takes the list object (engines, software, documentation, releaseNotes) to generate the xml elements.","created_at":"2015-11-18T17:09:45Z","updated_at":"2015-11-18T17:09:45Z","html_url":"https://github.com/hydroshare/hydroshare/pull/730#discussion_r45228203","pull_request_url":"https://api.github.com/repos/hydroshare/hydroshare/pulls/730","_links":{"self":{"href":"https://api.github.com/repos/hydroshare/hydroshare/pulls/comments/45228203"},"html":{"href":"https://github.com/hydroshare/hydroshare/pull/730#discussion_r45228203"},"pull_request":{"href":"https://api.github.com/repos/hydroshare/hydroshare/pulls/730"}}},"pull_request":{"url":"https://api.github.com/repos/hydroshare/hydroshare/pulls/730","id":50438581,"html_url":"https://github.com/hydroshare/hydroshare/pull/730","diff_url":"https://github.com/hydroshare/hydroshare/pull/730.diff","patch_url":"https://github.com/hydroshare/hydroshare/pull/730.patch","issue_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/730","number":730,"state":"open","locked":false,"title":"632 model program version2","user":{"login":"Castronova","id":4822372,"avatar_url":"https://avatars.githubusercontent.com/u/4822372?v=3","gravatar_id":"","url":"https://api.github.com/users/Castronova","html_url":"https://github.com/Castronova","followers_url":"https://api.github.com/users/Castronova/followers","following_url":"https://api.github.com/users/Castronova/following{/other_user}","gists_url":"https://api.github.com/users/Castronova/gists{/gist_id}","starred_url":"https://api.github.com/users/Castronova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Castronova/subscriptions","organizations_url":"https://api.github.com/users/Castronova/orgs","repos_url":"https://api.github.com/users/Castronova/repos","events_url":"https://api.github.com/users/Castronova/events{/privacy}","received_events_url":"https://api.github.com/users/Castronova/received_events","type":"User","site_admin":false},"body":"Version 2 of the Model Program resource\r\n\r\n* Metadata terms renaming and consolidation\r\n* JQuery multi-select boxes to enable multi-value metadata fields\r\n* Added events for resource submit-success and submit-failure\r\n* Enhanced metadata validation\r\n* Added a datetime widget to make sure releaseDate metadata term is in the correct format","created_at":"2015-11-11T21:26:47Z","updated_at":"2015-11-18T17:09:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac4bb8058bdba4c3ea929825c1a7841713d60820","assignee":{"login":"mohamedmorsy","id":5543781,"avatar_url":"https://avatars.githubusercontent.com/u/5543781?v=3","gravatar_id":"","url":"https://api.github.com/users/mohamedmorsy","html_url":"https://github.com/mohamedmorsy","followers_url":"https://api.github.com/users/mohamedmorsy/followers","following_url":"https://api.github.com/users/mohamedmorsy/following{/other_user}","gists_url":"https://api.github.com/users/mohamedmorsy/gists{/gist_id}","starred_url":"https://api.github.com/users/mohamedmorsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohamedmorsy/subscriptions","organizations_url":"https://api.github.com/users/mohamedmorsy/orgs","repos_url":"https://api.github.com/users/mohamedmorsy/repos","events_url":"https://api.github.com/users/mohamedmorsy/events{/privacy}","received_events_url":"https://api.github.com/users/mohamedmorsy/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/hydroshare/hydroshare/milestones/18","html_url":"https://github.com/hydroshare/hydroshare/milestones/Release%201.6.3%20-%20Further%20Improvements","labels_url":"https://api.github.com/repos/hydroshare/hydroshare/milestones/18/labels","id":1391822,"number":18,"title":"Release 1.6.3 - Further Improvements","description":"Improvements not included in 1.6.2","creator":{"login":"mjstealey","id":5332509,"avatar_url":"https://avatars.githubusercontent.com/u/5332509?v=3","gravatar_id":"","url":"https://api.github.com/users/mjstealey","html_url":"https://github.com/mjstealey","followers_url":"https://api.github.com/users/mjstealey/followers","following_url":"https://api.github.com/users/mjstealey/following{/other_user}","gists_url":"https://api.github.com/users/mjstealey/gists{/gist_id}","starred_url":"https://api.github.com/users/mjstealey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjstealey/subscriptions","organizations_url":"https://api.github.com/users/mjstealey/orgs","repos_url":"https://api.github.com/users/mjstealey/repos","events_url":"https://api.github.com/users/mjstealey/events{/privacy}","received_events_url":"https://api.github.com/users/mjstealey/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":0,"state":"open","created_at":"2015-11-03T17:13:57Z","updated_at":"2015-11-12T23:13:09Z","due_on":"2015-11-17T05:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/hydroshare/hydroshare/pulls/730/commits","review_comments_url":"https://api.github.com/repos/hydroshare/hydroshare/pulls/730/comments","review_comment_url":"https://api.github.com/repos/hydroshare/hydroshare/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/730/comments","statuses_url":"https://api.github.com/repos/hydroshare/hydroshare/statuses/1f4982ab84d84fea51f460ae7164f219d41ea514","head":{"label":"hydroshare:632-model-program-version2","ref":"632-model-program-version2","sha":"1f4982ab84d84fea51f460ae7164f219d41ea514","user":{"login":"hydroshare","id":3444493,"avatar_url":"https://avatars.githubusercontent.com/u/3444493?v=3","gravatar_id":"","url":"https://api.github.com/users/hydroshare","html_url":"https://github.com/hydroshare","followers_url":"https://api.github.com/users/hydroshare/followers","following_url":"https://api.github.com/users/hydroshare/following{/other_user}","gists_url":"https://api.github.com/users/hydroshare/gists{/gist_id}","starred_url":"https://api.github.com/users/hydroshare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hydroshare/subscriptions","organizations_url":"https://api.github.com/users/hydroshare/orgs","repos_url":"https://api.github.com/users/hydroshare/repos","events_url":"https://api.github.com/users/hydroshare/events{/privacy}","received_events_url":"https://api.github.com/users/hydroshare/received_events","type":"Organization","site_admin":false},"repo":{"id":24703136,"name":"hydroshare","full_name":"hydroshare/hydroshare","owner":{"login":"hydroshare","id":3444493,"avatar_url":"https://avatars.githubusercontent.com/u/3444493?v=3","gravatar_id":"","url":"https://api.github.com/users/hydroshare","html_url":"https://github.com/hydroshare","followers_url":"https://api.github.com/users/hydroshare/followers","following_url":"https://api.github.com/users/hydroshare/following{/other_user}","gists_url":"https://api.github.com/users/hydroshare/gists{/gist_id}","starred_url":"https://api.github.com/users/hydroshare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hydroshare/subscriptions","organizations_url":"https://api.github.com/users/hydroshare/orgs","repos_url":"https://api.github.com/users/hydroshare/repos","events_url":"https://api.github.com/users/hydroshare/events{/privacy}","received_events_url":"https://api.github.com/users/hydroshare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hydroshare/hydroshare","description":"HydroShare is a collaborative website being developed for better access to data and models in the hydrologic sciences. ","fork":false,"url":"https://api.github.com/repos/hydroshare/hydroshare","forks_url":"https://api.github.com/repos/hydroshare/hydroshare/forks","keys_url":"https://api.github.com/repos/hydroshare/hydroshare/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hydroshare/hydroshare/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hydroshare/hydroshare/teams","hooks_url":"https://api.github.com/repos/hydroshare/hydroshare/hooks","issue_events_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/events{/number}","events_url":"https://api.github.com/repos/hydroshare/hydroshare/events","assignees_url":"https://api.github.com/repos/hydroshare/hydroshare/assignees{/user}","branches_url":"https://api.github.com/repos/hydroshare/hydroshare/branches{/branch}","tags_url":"https://api.github.com/repos/hydroshare/hydroshare/tags","blobs_url":"https://api.github.com/repos/hydroshare/hydroshare/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hydroshare/hydroshare/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hydroshare/hydroshare/git/refs{/sha}","trees_url":"https://api.github.com/repos/hydroshare/hydroshare/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hydroshare/hydroshare/statuses/{sha}","languages_url":"https://api.github.com/repos/hydroshare/hydroshare/languages","stargazers_url":"https://api.github.com/repos/hydroshare/hydroshare/stargazers","contributors_url":"https://api.github.com/repos/hydroshare/hydroshare/contributors","subscribers_url":"https://api.github.com/repos/hydroshare/hydroshare/subscribers","subscription_url":"https://api.github.com/repos/hydroshare/hydroshare/subscription","commits_url":"https://api.github.com/repos/hydroshare/hydroshare/commits{/sha}","git_commits_url":"https://api.github.com/repos/hydroshare/hydroshare/git/commits{/sha}","comments_url":"https://api.github.com/repos/hydroshare/hydroshare/comments{/number}","issue_comment_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/comments{/number}","contents_url":"https://api.github.com/repos/hydroshare/hydroshare/contents/{+path}","compare_url":"https://api.github.com/repos/hydroshare/hydroshare/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hydroshare/hydroshare/merges","archive_url":"https://api.github.com/repos/hydroshare/hydroshare/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hydroshare/hydroshare/downloads","issues_url":"https://api.github.com/repos/hydroshare/hydroshare/issues{/number}","pulls_url":"https://api.github.com/repos/hydroshare/hydroshare/pulls{/number}","milestones_url":"https://api.github.com/repos/hydroshare/hydroshare/milestones{/number}","notifications_url":"https://api.github.com/repos/hydroshare/hydroshare/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hydroshare/hydroshare/labels{/name}","releases_url":"https://api.github.com/repos/hydroshare/hydroshare/releases{/id}","created_at":"2014-10-02T02:19:41Z","updated_at":"2015-10-16T12:02:24Z","pushed_at":"2015-11-18T16:54:51Z","git_url":"git://github.com/hydroshare/hydroshare.git","ssh_url":"git@github.com:hydroshare/hydroshare.git","clone_url":"https://github.com/hydroshare/hydroshare.git","svn_url":"https://github.com/hydroshare/hydroshare","homepage":"https://www.hydroshare.org","size":57226,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":179,"forks":2,"open_issues":179,"watchers":12,"default_branch":"develop"}},"base":{"label":"hydroshare:develop","ref":"develop","sha":"3ad2b573f900e97480249f477151e3293fb9999a","user":{"login":"hydroshare","id":3444493,"avatar_url":"https://avatars.githubusercontent.com/u/3444493?v=3","gravatar_id":"","url":"https://api.github.com/users/hydroshare","html_url":"https://github.com/hydroshare","followers_url":"https://api.github.com/users/hydroshare/followers","following_url":"https://api.github.com/users/hydroshare/following{/other_user}","gists_url":"https://api.github.com/users/hydroshare/gists{/gist_id}","starred_url":"https://api.github.com/users/hydroshare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hydroshare/subscriptions","organizations_url":"https://api.github.com/users/hydroshare/orgs","repos_url":"https://api.github.com/users/hydroshare/repos","events_url":"https://api.github.com/users/hydroshare/events{/privacy}","received_events_url":"https://api.github.com/users/hydroshare/received_events","type":"Organization","site_admin":false},"repo":{"id":24703136,"name":"hydroshare","full_name":"hydroshare/hydroshare","owner":{"login":"hydroshare","id":3444493,"avatar_url":"https://avatars.githubusercontent.com/u/3444493?v=3","gravatar_id":"","url":"https://api.github.com/users/hydroshare","html_url":"https://github.com/hydroshare","followers_url":"https://api.github.com/users/hydroshare/followers","following_url":"https://api.github.com/users/hydroshare/following{/other_user}","gists_url":"https://api.github.com/users/hydroshare/gists{/gist_id}","starred_url":"https://api.github.com/users/hydroshare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hydroshare/subscriptions","organizations_url":"https://api.github.com/users/hydroshare/orgs","repos_url":"https://api.github.com/users/hydroshare/repos","events_url":"https://api.github.com/users/hydroshare/events{/privacy}","received_events_url":"https://api.github.com/users/hydroshare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hydroshare/hydroshare","description":"HydroShare is a collaborative website being developed for better access to data and models in the hydrologic sciences. ","fork":false,"url":"https://api.github.com/repos/hydroshare/hydroshare","forks_url":"https://api.github.com/repos/hydroshare/hydroshare/forks","keys_url":"https://api.github.com/repos/hydroshare/hydroshare/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hydroshare/hydroshare/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hydroshare/hydroshare/teams","hooks_url":"https://api.github.com/repos/hydroshare/hydroshare/hooks","issue_events_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/events{/number}","events_url":"https://api.github.com/repos/hydroshare/hydroshare/events","assignees_url":"https://api.github.com/repos/hydroshare/hydroshare/assignees{/user}","branches_url":"https://api.github.com/repos/hydroshare/hydroshare/branches{/branch}","tags_url":"https://api.github.com/repos/hydroshare/hydroshare/tags","blobs_url":"https://api.github.com/repos/hydroshare/hydroshare/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hydroshare/hydroshare/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hydroshare/hydroshare/git/refs{/sha}","trees_url":"https://api.github.com/repos/hydroshare/hydroshare/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hydroshare/hydroshare/statuses/{sha}","languages_url":"https://api.github.com/repos/hydroshare/hydroshare/languages","stargazers_url":"https://api.github.com/repos/hydroshare/hydroshare/stargazers","contributors_url":"https://api.github.com/repos/hydroshare/hydroshare/contributors","subscribers_url":"https://api.github.com/repos/hydroshare/hydroshare/subscribers","subscription_url":"https://api.github.com/repos/hydroshare/hydroshare/subscription","commits_url":"https://api.github.com/repos/hydroshare/hydroshare/commits{/sha}","git_commits_url":"https://api.github.com/repos/hydroshare/hydroshare/git/commits{/sha}","comments_url":"https://api.github.com/repos/hydroshare/hydroshare/comments{/number}","issue_comment_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/comments{/number}","contents_url":"https://api.github.com/repos/hydroshare/hydroshare/contents/{+path}","compare_url":"https://api.github.com/repos/hydroshare/hydroshare/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hydroshare/hydroshare/merges","archive_url":"https://api.github.com/repos/hydroshare/hydroshare/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hydroshare/hydroshare/downloads","issues_url":"https://api.github.com/repos/hydroshare/hydroshare/issues{/number}","pulls_url":"https://api.github.com/repos/hydroshare/hydroshare/pulls{/number}","milestones_url":"https://api.github.com/repos/hydroshare/hydroshare/milestones{/number}","notifications_url":"https://api.github.com/repos/hydroshare/hydroshare/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hydroshare/hydroshare/labels{/name}","releases_url":"https://api.github.com/repos/hydroshare/hydroshare/releases{/id}","created_at":"2014-10-02T02:19:41Z","updated_at":"2015-10-16T12:02:24Z","pushed_at":"2015-11-18T16:54:51Z","git_url":"git://github.com/hydroshare/hydroshare.git","ssh_url":"git@github.com:hydroshare/hydroshare.git","clone_url":"https://github.com/hydroshare/hydroshare.git","svn_url":"https://github.com/hydroshare/hydroshare","homepage":"https://www.hydroshare.org","size":57226,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":179,"forks":2,"open_issues":179,"watchers":12,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/hydroshare/hydroshare/pulls/730"},"html":{"href":"https://github.com/hydroshare/hydroshare/pull/730"},"issue":{"href":"https://api.github.com/repos/hydroshare/hydroshare/issues/730"},"comments":{"href":"https://api.github.com/repos/hydroshare/hydroshare/issues/730/comments"},"review_comments":{"href":"https://api.github.com/repos/hydroshare/hydroshare/pulls/730/comments"},"review_comment":{"href":"https://api.github.com/repos/hydroshare/hydroshare/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hydroshare/hydroshare/pulls/730/commits"},"statuses":{"href":"https://api.github.com/repos/hydroshare/hydroshare/statuses/1f4982ab84d84fea51f460ae7164f219d41ea514"}}}}