Spliting GithubObjects.py

This commit is contained in:
Vincent Jacques
2012-03-13 19:18:28 +01:00
parent 378558f6ca
commit 3e8169c0a9
4 changed files with 65 additions and 55 deletions
+11
View File
@@ -0,0 +1,11 @@
from GithubObject import *
UserKey = GithubObject(
"UserKey",
BaseUrl( lambda obj: "/user/keys/" + str( obj.id ) ),
InternalSimpleAttributes(
"url", "id", "title", "key",
),
Editable( [], [ "title", "key" ] ),
Deletable(),
)