Remove useless ObjectGetter

It was replaced by ListOfObjects with ElementGetable some time ago
This commit is contained in:
Vincent Jacques
2012-02-25 08:03:16 +00:00
parent f1a7b0dc09
commit 5e1fd2e946
2 changed files with 0 additions and 27 deletions
-9
View File
@@ -86,15 +86,6 @@ class Deletable( MethodFromCallable ):
def __execute( self, obj, *args, **kwds ):
obj._github._statusRequest( "DELETE", obj._baseUrl, None, None )
class ObjectGetter( MethodFromCallable ):
def __init__( self, singularName, type, attributes ):
MethodFromCallable.__init__( self, "get_" + singularName, self.__execute )
self.__attributes = attributes
self.__type = type
def __execute( self, obj, *args, **kwds ):
return self.__type( obj._github, self.__attributes( obj, *args, **kwds ), lazy = False )
def GithubObject( className, *attributePolicies ):
class GithubObject:
__attributeDefinitions = dict()