Test non-lazy construction

This commit is contained in:
Vincent Jacques
2012-02-12 14:44:56 +01:00
parent 80ec0bde33
commit f50dbffc28
2 changed files with 22 additions and 0 deletions
+4
View File
@@ -40,6 +40,10 @@ def GithubObject( className, *attributePolicies ):
self._github = github
self.__attributes = dict()
self.__updateAttributes( attributes )
if not lazy:
for attributeName in attributeDefinitions:
if attributeName not in self.__attributes:
self.__fetchAttribute( attributeName )
def __getattr__( self, attributeName ):
if attributeName in attributeDefinitions: