def addFromLayout(self, Layout): # Layout is a recursive list of JobLayout items. At the end # of each tree there is a JobLayout object which has a 'job' # member, which is what we're looking for. Fortunately, the # canonicalize() function flattens the tree. # # Positions of jobs have already been set (we're assuming) # prior to calling this function. self.jobs = self.jobs + parselayout.canonicalizePanel(Layout)