Ejemplo n.º 1
0
    def __init__(self, subchanges=None, samples=None, mover=None, details=None):
        OPSObject.__init__(self)
        self._len = None
        self._collapsed = None
        self._results = None
        self._trials = None
        self._accepted = None
        self.mover = mover
        if subchanges is None:
            self.subchanges = list()
        else:
            self.subchanges = subchanges

        if samples is None:
            self.samples = list()
        else:
            self.samples = samples
        self.details = details
    def __init__(self, storage):
        super(PathMoveChangeStore, self).__init__(
            storage,
            PathMoveChange,
            json=False,
            load_partial=True
        )

        self.set_variable_partial_loading('details', self.update_details)
#        self.set_variable_partial_loading('mover', self.update_mover)

        self._cached_all = False

        self.class_list = OPSObject.objects()