Exemple #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
Exemple #2
0
 def __init__(self, filename=None):
     JSONLoader.__init__(self, filename)
Exemple #3
0
    def save(self):
        if self._dirty:
            self._data["fixtures"] = [f.pack() for f in self._fixtures]

        JSONLoader.save(self)
Exemple #4
0
 def __init__(self, filename=None):
     JSONLoader.__init__(self, filename)
Exemple #5
0
 def __init__(self, filename=None):
     JSONLoader.__init__(self, filename)
     self._fixtures = None
     self._fixture_hierarchy = None