def create_new_doc(config): doc = sk_model.SKDocument(config) layout = sk_model.SKLayout() doc.childs.append(layout) doc.layout = layout doc.childs.append(sk_model.SKLayer()) grid = sk_model.SKGrid() doc.childs.append(grid) doc.grid = grid glayer = sk_model.SKGuideLayer() doc.childs.append(glayer) doc.guidelayer = glayer return doc
def document(self, *args): self.add_object(sk_model.SKDocument(self.config)) self.model.childs = []