On the way to remove modifyAttributes from ElementCreatable and ListGetable

This commit is contained in:
Vincent Jacques
2012-02-26 10:29:59 +00:00
parent f5e9a55ed1
commit b9a0ba9ade
2 changed files with 8 additions and 5 deletions
+2 -1
View File
@@ -43,7 +43,8 @@ class ElementCreatable( ListCapacity ):
def __execute( self, obj, *args, **kwds ):
data = self.__argumentsChecker.check( args, kwds )
return self.typePolicy.createLazy( obj, self.__modifyAttributes( obj, obj._github._dataRequest( "POST", obj._baseUrl + "/" + self.attributeName, None, data ) ) )
attributes = obj._github._dataRequest( "POST", obj._baseUrl + "/" + self.attributeName, None, data )
return self.typePolicy.createLazy( obj, self.__modifyAttributes( obj, attributes ) )
class ElementGetable( ListCapacity ):
def __init__( self, mandatoryParameters, optionalParameters, objReferenceName = None ):