{"action":"created","comment":{"url":"https://api.github.com/repos/zzzsochi/yadm/pulls/comments/59666795","id":59666795,"diff_hunk":"@@ -126,6 +184,15 @@ def from_string(s):\n             c = int(c)\n         return Money(v, DEFAULT_CURRENCY_STORAGE[c])\n \n+    def is_positive(self):\n+        return self.value > 0\n+\n+    def is_negative(self):\n+        return self.value < 0\n+\n+    def is_zero(self):","path":"yadm/fields/money/money.py","position":193,"original_position":133,"commit_id":"35124310713b1eda76c77878c849d06eca75238c","original_commit_id":"35124310713b1eda76c77878c849d06eca75238c","user":{"login":"kxepal","id":785983,"avatar_url":"https://avatars.githubusercontent.com/u/785983?v=3","gravatar_id":"","url":"https://api.github.com/users/kxepal","html_url":"https://github.com/kxepal","followers_url":"https://api.github.com/users/kxepal/followers","following_url":"https://api.github.com/users/kxepal/following{/other_user}","gists_url":"https://api.github.com/users/kxepal/gists{/gist_id}","starred_url":"https://api.github.com/users/kxepal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kxepal/subscriptions","organizations_url":"https://api.github.com/users/kxepal/orgs","repos_url":"https://api.github.com/users/kxepal/repos","events_url":"https://api.github.com/users/kxepal/events{/privacy}","received_events_url":"https://api.github.com/users/kxepal/received_events","type":"User","site_admin":false},"body":"Мне вот просто интересно - в чем смысл этих методов, если проще сравнить с нулем в условии? Какой-то java-style с его `foo.equals(bar)`.","created_at":"2016-04-14T06:07:31Z","updated_at":"2016-04-14T06:07:31Z","html_url":"https://github.com/zzzsochi/yadm/pull/6#discussion_r59666795","pull_request_url":"https://api.github.com/repos/zzzsochi/yadm/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/zzzsochi/yadm/pulls/comments/59666795"},"html":{"href":"https://github.com/zzzsochi/yadm/pull/6#discussion_r59666795"},"pull_request":{"href":"https://api.github.com/repos/zzzsochi/yadm/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/zzzsochi/yadm/pulls/6","id":65906805,"html_url":"https://github.com/zzzsochi/yadm/pull/6","diff_url":"https://github.com/zzzsochi/yadm/pull/6.diff","patch_url":"https://github.com/zzzsochi/yadm/pull/6.patch","issue_url":"https://api.github.com/repos/zzzsochi/yadm/issues/6","number":6,"state":"open","locked":false,"title":"new Money and MoneyField classes","user":{"login":"EvgeniyMakhmudov","id":3597681,"avatar_url":"https://avatars.githubusercontent.com/u/3597681?v=3","gravatar_id":"","url":"https://api.github.com/users/EvgeniyMakhmudov","html_url":"https://github.com/EvgeniyMakhmudov","followers_url":"https://api.github.com/users/EvgeniyMakhmudov/followers","following_url":"https://api.github.com/users/EvgeniyMakhmudov/following{/other_user}","gists_url":"https://api.github.com/users/EvgeniyMakhmudov/gists{/gist_id}","starred_url":"https://api.github.com/users/EvgeniyMakhmudov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvgeniyMakhmudov/subscriptions","organizations_url":"https://api.github.com/users/EvgeniyMakhmudov/orgs","repos_url":"https://api.github.com/users/EvgeniyMakhmudov/repos","events_url":"https://api.github.com/users/EvgeniyMakhmudov/events{/privacy}","received_events_url":"https://api.github.com/users/EvgeniyMakhmudov/received_events","type":"User","site_admin":false},"body":"new  field for money","created_at":"2016-04-10T10:29:05Z","updated_at":"2016-04-14T06:07:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"217134a15459712f43df96f775c80b0c9e76a3af","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zzzsochi/yadm/pulls/6/commits","review_comments_url":"https://api.github.com/repos/zzzsochi/yadm/pulls/6/comments","review_comment_url":"https://api.github.com/repos/zzzsochi/yadm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zzzsochi/yadm/issues/6/comments","statuses_url":"https://api.github.com/repos/zzzsochi/yadm/statuses/35124310713b1eda76c77878c849d06eca75238c","head":{"label":"EvgeniyMakhmudov:new_money","ref":"new_money","sha":"35124310713b1eda76c77878c849d06eca75238c","user":{"login":"EvgeniyMakhmudov","id":3597681,"avatar_url":"https://avatars.githubusercontent.com/u/3597681?v=3","gravatar_id":"","url":"https://api.github.com/users/EvgeniyMakhmudov","html_url":"https://github.com/EvgeniyMakhmudov","followers_url":"https://api.github.com/users/EvgeniyMakhmudov/followers","following_url":"https://api.github.com/users/EvgeniyMakhmudov/following{/other_user}","gists_url":"https://api.github.com/users/EvgeniyMakhmudov/gists{/gist_id}","starred_url":"https://api.github.com/users/EvgeniyMakhmudov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvgeniyMakhmudov/subscriptions","organizations_url":"https://api.github.com/users/EvgeniyMakhmudov/orgs","repos_url":"https://api.github.com/users/EvgeniyMakhmudov/repos","events_url":"https://api.github.com/users/EvgeniyMakhmudov/events{/privacy}","received_events_url":"https://api.github.com/users/EvgeniyMakhmudov/received_events","type":"User","site_admin":false},"repo":{"id":55891288,"name":"yadm","full_name":"EvgeniyMakhmudov/yadm","owner":{"login":"EvgeniyMakhmudov","id":3597681,"avatar_url":"https://avatars.githubusercontent.com/u/3597681?v=3","gravatar_id":"","url":"https://api.github.com/users/EvgeniyMakhmudov","html_url":"https://github.com/EvgeniyMakhmudov","followers_url":"https://api.github.com/users/EvgeniyMakhmudov/followers","following_url":"https://api.github.com/users/EvgeniyMakhmudov/following{/other_user}","gists_url":"https://api.github.com/users/EvgeniyMakhmudov/gists{/gist_id}","starred_url":"https://api.github.com/users/EvgeniyMakhmudov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvgeniyMakhmudov/subscriptions","organizations_url":"https://api.github.com/users/EvgeniyMakhmudov/orgs","repos_url":"https://api.github.com/users/EvgeniyMakhmudov/repos","events_url":"https://api.github.com/users/EvgeniyMakhmudov/events{/privacy}","received_events_url":"https://api.github.com/users/EvgeniyMakhmudov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EvgeniyMakhmudov/yadm","description":"Yet Another Document Mapper (ODM) for MongoDB","fork":true,"url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm","forks_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/forks","keys_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/teams","hooks_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/hooks","issue_events_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/issues/events{/number}","events_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/events","assignees_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/assignees{/user}","branches_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/branches{/branch}","tags_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/tags","blobs_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/git/refs{/sha}","trees_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/statuses/{sha}","languages_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/languages","stargazers_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/stargazers","contributors_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/contributors","subscribers_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/subscribers","subscription_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/subscription","commits_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/commits{/sha}","git_commits_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/git/commits{/sha}","comments_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/comments{/number}","issue_comment_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/issues/comments{/number}","contents_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/contents/{+path}","compare_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/merges","archive_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/downloads","issues_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/issues{/number}","pulls_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/pulls{/number}","milestones_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/milestones{/number}","notifications_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/labels{/name}","releases_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/releases{/id}","deployments_url":"https://api.github.com/repos/EvgeniyMakhmudov/yadm/deployments","created_at":"2016-04-10T09:44:22Z","updated_at":"2016-04-10T09:44:24Z","pushed_at":"2016-04-13T22:23:29Z","git_url":"git://github.com/EvgeniyMakhmudov/yadm.git","ssh_url":"git@github.com:EvgeniyMakhmudov/yadm.git","clone_url":"https://github.com/EvgeniyMakhmudov/yadm.git","svn_url":"https://github.com/EvgeniyMakhmudov/yadm","homepage":null,"size":249,"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":"master"}},"base":{"label":"zzzsochi:master","ref":"master","sha":"97c14966bf6b4908a636814dd5d0f76bcf3e6502","user":{"login":"zzzsochi","id":443794,"avatar_url":"https://avatars.githubusercontent.com/u/443794?v=3","gravatar_id":"","url":"https://api.github.com/users/zzzsochi","html_url":"https://github.com/zzzsochi","followers_url":"https://api.github.com/users/zzzsochi/followers","following_url":"https://api.github.com/users/zzzsochi/following{/other_user}","gists_url":"https://api.github.com/users/zzzsochi/gists{/gist_id}","starred_url":"https://api.github.com/users/zzzsochi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzzsochi/subscriptions","organizations_url":"https://api.github.com/users/zzzsochi/orgs","repos_url":"https://api.github.com/users/zzzsochi/repos","events_url":"https://api.github.com/users/zzzsochi/events{/privacy}","received_events_url":"https://api.github.com/users/zzzsochi/received_events","type":"User","site_admin":false},"repo":{"id":17905472,"name":"yadm","full_name":"zzzsochi/yadm","owner":{"login":"zzzsochi","id":443794,"avatar_url":"https://avatars.githubusercontent.com/u/443794?v=3","gravatar_id":"","url":"https://api.github.com/users/zzzsochi","html_url":"https://github.com/zzzsochi","followers_url":"https://api.github.com/users/zzzsochi/followers","following_url":"https://api.github.com/users/zzzsochi/following{/other_user}","gists_url":"https://api.github.com/users/zzzsochi/gists{/gist_id}","starred_url":"https://api.github.com/users/zzzsochi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzzsochi/subscriptions","organizations_url":"https://api.github.com/users/zzzsochi/orgs","repos_url":"https://api.github.com/users/zzzsochi/repos","events_url":"https://api.github.com/users/zzzsochi/events{/privacy}","received_events_url":"https://api.github.com/users/zzzsochi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zzzsochi/yadm","description":"Yet Another Document Mapper (ODM) for MongoDB","fork":false,"url":"https://api.github.com/repos/zzzsochi/yadm","forks_url":"https://api.github.com/repos/zzzsochi/yadm/forks","keys_url":"https://api.github.com/repos/zzzsochi/yadm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zzzsochi/yadm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zzzsochi/yadm/teams","hooks_url":"https://api.github.com/repos/zzzsochi/yadm/hooks","issue_events_url":"https://api.github.com/repos/zzzsochi/yadm/issues/events{/number}","events_url":"https://api.github.com/repos/zzzsochi/yadm/events","assignees_url":"https://api.github.com/repos/zzzsochi/yadm/assignees{/user}","branches_url":"https://api.github.com/repos/zzzsochi/yadm/branches{/branch}","tags_url":"https://api.github.com/repos/zzzsochi/yadm/tags","blobs_url":"https://api.github.com/repos/zzzsochi/yadm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zzzsochi/yadm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zzzsochi/yadm/git/refs{/sha}","trees_url":"https://api.github.com/repos/zzzsochi/yadm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zzzsochi/yadm/statuses/{sha}","languages_url":"https://api.github.com/repos/zzzsochi/yadm/languages","stargazers_url":"https://api.github.com/repos/zzzsochi/yadm/stargazers","contributors_url":"https://api.github.com/repos/zzzsochi/yadm/contributors","subscribers_url":"https://api.github.com/repos/zzzsochi/yadm/subscribers","subscription_url":"https://api.github.com/repos/zzzsochi/yadm/subscription","commits_url":"https://api.github.com/repos/zzzsochi/yadm/commits{/sha}","git_commits_url":"https://api.github.com/repos/zzzsochi/yadm/git/commits{/sha}","comments_url":"https://api.github.com/repos/zzzsochi/yadm/comments{/number}","issue_comment_url":"https://api.github.com/repos/zzzsochi/yadm/issues/comments{/number}","contents_url":"https://api.github.com/repos/zzzsochi/yadm/contents/{+path}","compare_url":"https://api.github.com/repos/zzzsochi/yadm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zzzsochi/yadm/merges","archive_url":"https://api.github.com/repos/zzzsochi/yadm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zzzsochi/yadm/downloads","issues_url":"https://api.github.com/repos/zzzsochi/yadm/issues{/number}","pulls_url":"https://api.github.com/repos/zzzsochi/yadm/pulls{/number}","milestones_url":"https://api.github.com/repos/zzzsochi/yadm/milestones{/number}","notifications_url":"https://api.github.com/repos/zzzsochi/yadm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zzzsochi/yadm/labels{/name}","releases_url":"https://api.github.com/repos/zzzsochi/yadm/releases{/id}","deployments_url":"https://api.github.com/repos/zzzsochi/yadm/deployments","created_at":"2014-03-19T13:39:50Z","updated_at":"2016-02-16T08:06:38Z","pushed_at":"2016-04-13T22:23:29Z","git_url":"git://github.com/zzzsochi/yadm.git","ssh_url":"git@github.com:zzzsochi/yadm.git","clone_url":"https://github.com/zzzsochi/yadm.git","svn_url":"https://github.com/zzzsochi/yadm","homepage":null,"size":227,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zzzsochi/yadm/pulls/6"},"html":{"href":"https://github.com/zzzsochi/yadm/pull/6"},"issue":{"href":"https://api.github.com/repos/zzzsochi/yadm/issues/6"},"comments":{"href":"https://api.github.com/repos/zzzsochi/yadm/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/zzzsochi/yadm/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/zzzsochi/yadm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zzzsochi/yadm/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/zzzsochi/yadm/statuses/35124310713b1eda76c77878c849d06eca75238c"}}}}