{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/47771795","id":47771795,"diff_hunk":"@@ -0,0 +1,121 @@\n+# -*- coding: utf-8 -*-\n+\n+from modularodm import fields\n+\n+from framework.exceptions import HTTPError\n+\n+from website.addons.base import AddonUserSettingsBase, AddonNodeSettingsBase\n+from website.addons.base import StorageAddonBase\n+\n+from website.addons.dryad import settings as dryad_settings\n+#from website.addons.dryad import serializer as serializer\n+\n+from pyDryad import Dryad\n+\n+\n+class AddonDryadUserSettings(AddonUserSettingsBase):\n+\n+    def delete(self, **kwargs):\n+        super(AddonDryadUserSettings, self).delete()\n+\n+    @property\n+    def has_auth(self):\n+        return True\n+\n+\n+class AddonDryadNodeSettings(StorageAddonBase, AddonNodeSettingsBase):\n+    \"\"\"\n+        A Dryad node is a collection of packages. Each package is specified by a DOI, and the title is saved automatically\n+    \"\"\"\n+    dryad_package_doi = fields.StringField()\n+    complete = True\n+    has_auth = True\n+    provider_name = 'dryad'\n+\n+    user_settings = fields.ForeignField(\n+        'addondryadusersettings', backref='authorized'\n+    )\n+\n+    def delete(self, **kwargs):\n+        self.dryad_package_doi = None\n+        super(AddonDryadNodeSettings, self).delete()\n+\n+    @property\n+    def folder_name(self):\n+        #get the name from dryad\n+        return ''\n+\n+    def serialize_waterbutler_credentials(self):\n+        return {'storage': {}}","path":"website/addons/dryad/model.py","position":49,"original_position":49,"commit_id":"7e50b6c15e3609eda40c55b55cf33cdb89107779","original_commit_id":"7e50b6c15e3609eda40c55b55cf33cdb89107779","user":{"login":"samchrisinger","id":2207561,"avatar_url":"https://avatars.githubusercontent.com/u/2207561?v=3","gravatar_id":"","url":"https://api.github.com/users/samchrisinger","html_url":"https://github.com/samchrisinger","followers_url":"https://api.github.com/users/samchrisinger/followers","following_url":"https://api.github.com/users/samchrisinger/following{/other_user}","gists_url":"https://api.github.com/users/samchrisinger/gists{/gist_id}","starred_url":"https://api.github.com/users/samchrisinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samchrisinger/subscriptions","organizations_url":"https://api.github.com/users/samchrisinger/orgs","repos_url":"https://api.github.com/users/samchrisinger/repos","events_url":"https://api.github.com/users/samchrisinger/events{/privacy}","received_events_url":"https://api.github.com/users/samchrisinger/received_events","type":"User","site_admin":false},"body":"Never mind, this is done this below.","created_at":"2015-12-16T12:52:54Z","updated_at":"2015-12-16T12:52:54Z","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/4679#discussion_r47771795","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4679","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments/47771795"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/4679#discussion_r47771795"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4679"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4679","id":52439812,"html_url":"https://github.com/CenterForOpenScience/osf.io/pull/4679","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/4679.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/4679.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4679","number":4679,"state":"open","locked":false,"title":"Feature/dryad addon","user":{"login":"kwierman","id":1746808,"avatar_url":"https://avatars.githubusercontent.com/u/1746808?v=3","gravatar_id":"","url":"https://api.github.com/users/kwierman","html_url":"https://github.com/kwierman","followers_url":"https://api.github.com/users/kwierman/followers","following_url":"https://api.github.com/users/kwierman/following{/other_user}","gists_url":"https://api.github.com/users/kwierman/gists{/gist_id}","starred_url":"https://api.github.com/users/kwierman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwierman/subscriptions","organizations_url":"https://api.github.com/users/kwierman/orgs","repos_url":"https://api.github.com/users/kwierman/repos","events_url":"https://api.github.com/users/kwierman/events{/privacy}","received_events_url":"https://api.github.com/users/kwierman/received_events","type":"User","site_admin":false},"body":"Adding Dryad Addon. This time around, I've cleaned up the commits. I've got one squashed commit for my main changes and one for reverting all the small changes I used to get osf to work on my machine. Finally, I have a merge commit for automatically merging this with develop. This is now tested and passes flake8. Hopefully, this should work.","created_at":"2015-12-02T19:09:12Z","updated_at":"2015-12-16T12:52:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0436e36465d9bf9736c97eaa19cc69d040705170","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4679/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4679/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4679/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/7e50b6c15e3609eda40c55b55cf33cdb89107779","head":{"label":"kwierman:feature/dryad_addon","ref":"feature/dryad_addon","sha":"7e50b6c15e3609eda40c55b55cf33cdb89107779","user":{"login":"kwierman","id":1746808,"avatar_url":"https://avatars.githubusercontent.com/u/1746808?v=3","gravatar_id":"","url":"https://api.github.com/users/kwierman","html_url":"https://github.com/kwierman","followers_url":"https://api.github.com/users/kwierman/followers","following_url":"https://api.github.com/users/kwierman/following{/other_user}","gists_url":"https://api.github.com/users/kwierman/gists{/gist_id}","starred_url":"https://api.github.com/users/kwierman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwierman/subscriptions","organizations_url":"https://api.github.com/users/kwierman/orgs","repos_url":"https://api.github.com/users/kwierman/repos","events_url":"https://api.github.com/users/kwierman/events{/privacy}","received_events_url":"https://api.github.com/users/kwierman/received_events","type":"User","site_admin":false},"repo":{"id":41117918,"name":"osf.io","full_name":"kwierman/osf.io","owner":{"login":"kwierman","id":1746808,"avatar_url":"https://avatars.githubusercontent.com/u/1746808?v=3","gravatar_id":"","url":"https://api.github.com/users/kwierman","html_url":"https://github.com/kwierman","followers_url":"https://api.github.com/users/kwierman/followers","following_url":"https://api.github.com/users/kwierman/following{/other_user}","gists_url":"https://api.github.com/users/kwierman/gists{/gist_id}","starred_url":"https://api.github.com/users/kwierman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwierman/subscriptions","organizations_url":"https://api.github.com/users/kwierman/orgs","repos_url":"https://api.github.com/users/kwierman/repos","events_url":"https://api.github.com/users/kwierman/events{/privacy}","received_events_url":"https://api.github.com/users/kwierman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kwierman/osf.io","description":"Facilitating Open Science","fork":true,"url":"https://api.github.com/repos/kwierman/osf.io","forks_url":"https://api.github.com/repos/kwierman/osf.io/forks","keys_url":"https://api.github.com/repos/kwierman/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kwierman/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kwierman/osf.io/teams","hooks_url":"https://api.github.com/repos/kwierman/osf.io/hooks","issue_events_url":"https://api.github.com/repos/kwierman/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/kwierman/osf.io/events","assignees_url":"https://api.github.com/repos/kwierman/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/kwierman/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/kwierman/osf.io/tags","blobs_url":"https://api.github.com/repos/kwierman/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kwierman/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kwierman/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/kwierman/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kwierman/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/kwierman/osf.io/languages","stargazers_url":"https://api.github.com/repos/kwierman/osf.io/stargazers","contributors_url":"https://api.github.com/repos/kwierman/osf.io/contributors","subscribers_url":"https://api.github.com/repos/kwierman/osf.io/subscribers","subscription_url":"https://api.github.com/repos/kwierman/osf.io/subscription","commits_url":"https://api.github.com/repos/kwierman/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/kwierman/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/kwierman/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/kwierman/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/kwierman/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/kwierman/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kwierman/osf.io/merges","archive_url":"https://api.github.com/repos/kwierman/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kwierman/osf.io/downloads","issues_url":"https://api.github.com/repos/kwierman/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/kwierman/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/kwierman/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/kwierman/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kwierman/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/kwierman/osf.io/releases{/id}","created_at":"2015-08-20T20:41:51Z","updated_at":"2015-08-20T20:41:56Z","pushed_at":"2015-12-02T19:06:41Z","git_url":"git://github.com/kwierman/osf.io.git","ssh_url":"git@github.com:kwierman/osf.io.git","clone_url":"https://github.com/kwierman/osf.io.git","svn_url":"https://github.com/kwierman/osf.io","homepage":"http://osf.io","size":108071,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"CenterForOpenScience:develop","ref":"develop","sha":"bed111c6e307b2ad5d1f0a6a59a57c94fcc58209","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":10199599,"name":"osf.io","full_name":"CenterForOpenScience/osf.io","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/osf.io","description":"Facilitating Open Science","fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/osf.io","forks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/releases{/id}","created_at":"2013-05-21T15:53:37Z","updated_at":"2015-12-16T02:02:47Z","pushed_at":"2015-12-16T12:33:13Z","git_url":"git://github.com/CenterForOpenScience/osf.io.git","ssh_url":"git@github.com:CenterForOpenScience/osf.io.git","clone_url":"https://github.com/CenterForOpenScience/osf.io.git","svn_url":"https://github.com/CenterForOpenScience/osf.io","homepage":"http://osf.io","size":224355,"stargazers_count":172,"watchers_count":172,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":138,"mirror_url":null,"open_issues_count":339,"forks":138,"open_issues":339,"watchers":172,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4679"},"html":{"href":"https://github.com/CenterForOpenScience/osf.io/pull/4679"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4679"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/4679/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4679/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/4679/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/osf.io/statuses/7e50b6c15e3609eda40c55b55cf33cdb89107779"}}}}