Fix bug: _baseUrl is now a method

This handles modification of attributes creating the base url
This commit is contained in:
Vincent Jacques
2012-03-12 22:28:06 +01:00
parent cc6d0fc044
commit fc33a6de4f
5 changed files with 36 additions and 35 deletions
+2 -2
View File
@@ -59,7 +59,7 @@ class InternalAttribute:
return self.__typePolicy.createLazy( obj, rawValue )
def updateAttributes( self, obj ):
attributes = obj._github._dataRequest( "GET", obj._baseUrl, None, None )
attributes = obj._github._dataRequest( "GET", obj._baseUrl(), None, None )
obj._updateAttributes( attributes )
obj._markAsCompleted()
@@ -93,7 +93,7 @@ class ExternalAttribute:
def __execute( self, obj ):
return self.__typePolicy.createLazy(
obj,
obj._github._dataRequest( "GET", obj._baseUrl + "/" + self.__attributeName, None, None )
obj._github._dataRequest( "GET", obj._baseUrl() + "/" + self.__attributeName, None, None )
)
def autoDocument( self ):