Exemplo n.º 1
0
 def __init__(self, filename=None):
     JSONLoader.__init__(self, filename)
     self._dirty = False
     self._fixtures = None
     self._fixture_hierarchy = None
     # The model really shouldn't contain a reference to its controller, but
     # this makes the current refactor easier
     self._controller = None
Exemplo n.º 2
0
 def __init__(self, filename=None):
     JSONLoader.__init__(self, filename)
Exemplo n.º 3
0
    def save(self):
        if self._dirty:
            self._data["fixtures"] = [f.pack() for f in self._fixtures]

        JSONLoader.save(self)
Exemplo n.º 4
0
 def __init__(self, filename=None):
     JSONLoader.__init__(self, filename)
Exemplo n.º 5
0
 def __init__(self, filename=None):
     JSONLoader.__init__(self, filename)
     self._fixtures = None
     self._fixture_hierarchy = None