@save<EOL><INDENT>@load<EOL>def add(self, name, priority=<NUM_LIT:3>, comment="<STR_LIT>", parent="<STR_LIT>"):<DEDENT>
item = [name, priority, comment, False, []]<EOL>data = self.data<EOL>for c in self._split(parent):<EOL><INDENT>data = data[int(c) - <NUM_LIT:1>][<NUM_LIT:4>]<EOL><DEDENT>data.append(item)<EOL>
Adds new item to the model.

        Name argument may contain (ref:) syntax, which will be
        stripped down as needed.

        :parent: should have a form "<itemref>.<subitemref...>" (e.g. "1.1").

        :name: Name (with refs).
        :priority: Item's priority.
        :comment: Comment.
        :parent: Item's parent ("" for top-level item).