Move classes around

This commit is contained in:
Vincent Jacques
2012-03-14 22:56:08 +01:00
parent 50ac55b25c
commit 85eef75635
38 changed files with 0 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
from GithubObject import *
def __testHook( hook ):
hook._github._statusRequest( "POST", hook._baseUrl() + "/test", None, None )
Hook = GithubObject(
"Hook",
BaseUrl( lambda obj: obj._repo._baseUrl() + "/hooks/" + str( obj.id ) ),
InternalSimpleAttributes(
"url", "updated_at", "created_at", "name", "events", "active", "config",
"id", "last_response",
"_repo",
),
Editable( [ "name", "config" ], [ "events", "add_events", "remove_events", "active" ] ),
Deletable(),
SeveralAttributePolicies( [ MethodFromCallable( "test", [], [], __testHook, SimpleTypePolicy( None ) ) ], "Testing" )
)