Spliting GithubObjects.py

This commit is contained in:
Vincent Jacques
2012-03-13 20:11:37 +01:00
parent 99564c1cab
commit 1c95ddfa09
6 changed files with 134 additions and 102 deletions
+16
View File
@@ -0,0 +1,16 @@
from GithubObject import *
from NamedUser import NamedUser
PullRequestComment = GithubObject(
"PullRequestComment",
BaseUrl( lambda obj: obj._repo._baseUrl() + "/pulls/comments/" + str( obj.id ) ),
InternalSimpleAttributes(
"url", "id", "body", "path", "position", "commit_id",
"created_at", "updated_at", "html_url", "line",
"_repo",
),
InternalObjectAttribute( "user", NamedUser ),
Editable( [ "body" ], [] ),
Deletable(),
)