File: bound.py

package info (click to toggle)
python-reconfigure 0.1.74%2Bgit49a20890-3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 724 kB
  • ctags: 701
  • sloc: python: 4,201; makefile: 186; sh: 7
file content (18 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from reconfigure.builders.base import BaseBuilder


class BoundBuilder (BaseBuilder):
    """
    A builder that uses :class:`reconfigure.items.bound.BoundData` to build stuff

    :param root_class: a ``BoundData`` class that used as processing root
    """

    def __init__(self, root_class):
        self.root_class = root_class

    def build(self, nodetree):
        return self.root_class(nodetree)

    def unbuild(self, tree):
        pass