mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
Spliting GithubObjects.py
This commit is contained in:
+1
-12
@@ -21,18 +21,7 @@ from GitTree import GitTree
|
||||
from GitCommit import GitCommit
|
||||
from GitBlob import GitBlob
|
||||
from GitTag import GitTag
|
||||
|
||||
Label = GithubObject(
|
||||
"Label",
|
||||
BaseUrl( lambda obj: obj._repo._baseUrl() + "/labels/" + obj._identity ),
|
||||
Identity( lambda obj: urllib.quote( obj.name ) ),
|
||||
InternalSimpleAttributes(
|
||||
"url", "name", "color",
|
||||
"_repo",
|
||||
),
|
||||
Editable( [ "name", "color" ], [] ),
|
||||
Deletable(),
|
||||
)
|
||||
from Label import Label
|
||||
|
||||
__modifyAttributesForObjectsReferingReferedRepo = { "_repo": lambda obj: obj._repo }
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
from GithubObject import *
|
||||
|
||||
Label = GithubObject(
|
||||
"Label",
|
||||
BaseUrl( lambda obj: obj._repo._baseUrl() + "/labels/" + obj._identity ),
|
||||
Identity( lambda obj: urllib.quote( obj.name ) ),
|
||||
InternalSimpleAttributes(
|
||||
"url", "name", "color",
|
||||
"_repo",
|
||||
),
|
||||
Editable( [ "name", "color" ], [] ),
|
||||
Deletable(),
|
||||
)
|
||||
Reference in New Issue
Block a user