def __init__(self,categoryCollection=None): self.allItems = itemData() if categoryCollection is None: loader = categoryLoader() loader.loadFromFile() self.categoryCollection = loader.categoryList self.initialize()
def initialize(self): self.allItems = itemData()