Improve management of lazy completion

This commit is contained in:
Vincent Jacques
2012-05-12 15:28:07 +02:00
parent 350c7a3726
commit a72d8b1358
42 changed files with 198 additions and 191 deletions
+3 -3
View File
@@ -5,12 +5,12 @@ import PaginatedList
from GithubObject import *
class RepositoryKey( object ):
def __init__( self, requester, attributes, lazy ):
def __init__( self, requester, attributes, completion ):
self.__requester = requester
self.__completed = False
self.__completed = completion != LazyCompletion
self.__initAttributes()
self.__useAttributes( attributes )
if not lazy:
if completion == ImmediateCompletion:
self.__complete()
@property