create_repo -> create_repo

This commit is contained in:
Vincent Jacques
2012-02-16 22:39:06 +01:00
parent a031ac54c2
commit 90c71a340b
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -122,12 +122,12 @@ class ListOfReferences:
return obj._github._statusRequest( "GET", obj._baseUrl + "/" + self.__attributeName + "/" + toBeQueried._identity ) == 204
class ListOfObjects:
def __init__( self, attributeName, type, creatable = False ):
def __init__( self, attributeName, type, creatable = False, singularName = None ):
self.__attributeName = attributeName
self.__type = type
self.__getName = "get_" + attributeName
if creatable:
self.__createName = "create_" + attributeName
self.__createName = "create_" + ( singularName or attributeName )
else:
self.__createName = None