Beispiel #1
0
 def _clonePartList(self, newproject, partList):
     # clone parts and add them to the project
     for part in partList:
         part = UnwrapObject(part)
         if part.type == 'project':
             self._clonePartList(newproject, part.children)
         else:
             newpart = part.copyToProject(newproject)
             newproject.addChild(newpart)
 def _clonePartList(self, newproject, partList):
     # clone parts and add them to the project
     for part in partList:
         part = UnwrapObject(part)
         if part.type == 'project':
             self._clonePartList(newproject, part.children)
         else:
             newpart = part.copyToProject(newproject)
             newproject.addChild(newpart)