Пример #1
0
    def write_book(self, out, context):
        if '!' in self.modifier:
            return

        if context == 'Element':
            out.writeline(
                'utils::book(_tree, _name, "{name}", "{arrdef}", \'{type}\', gStore.getData(this).{name}, _branches);'
                .format(name=self.name,
                        arrdef=self.arrdef_text(),
                        type=self.type,
                        refname=self.refname))
        else:
            Branch.write_book(self, out, context)