Spliting GithubObjects.py

This commit is contained in:
Vincent Jacques
2012-03-13 19:59:48 +01:00
parent cab9d71603
commit fb722625dd
3 changed files with 30 additions and 21 deletions
+2 -21
View File
@@ -41,27 +41,8 @@ Milestone = GithubObject(
),
)
IssueComment = GithubObject(
"IssueComment",
BaseUrl( lambda obj: obj._repo._baseUrl() + "/issues/comments/" + str( obj.id ) ),
InternalSimpleAttributes(
"url", "body", "created_at", "updated_at", "id",
"_repo",
),
InternalObjectAttribute( "user", NamedUser ),
Editable( [ "body" ], [] ),
Deletable(),
)
IssueEvent = GithubObject(
"IssueEvent",
BaseUrl( lambda obj: obj._repo._baseUrl() + "/issues/events/" + str( obj.id ) ),
InternalSimpleAttributes(
"id", "url", "created_at", "issue", "event", "commit_id",
"_repo",
),
InternalObjectAttribute( "actor", NamedUser ),
)
from IssueComment import IssueComment
from IssueEvent import IssueEvent
Issue = GithubObject(
"Issue",