PEATDB/Base.py
def isChanged(self):
        """Check if DB has been changed"""
        persisted = [self.meta, self.data, self.meta.info]
        for p in persisted:
            if p._p_state == 1:
                return True
        for k in self.meta.keys():                    
            if not type(self.meta[k]) is PersistentMapping:
                continue
            if self.meta[k]._p_state == 1:
                return True
        for k in self.data.keys():
            if self.data[k]._p_state == 1:
                return True
        return False
Check if DB has been changed
Check if DB has been changed
Check if DB has been changed
def isChanged(self):
        persisted = [self.meta, self.data, self.meta.info]
        for p in persisted:
            if p._p_state == 1:
                return True
        for k in self.meta.keys():                    
            if not type(self.meta[k]) is PersistentMapping:
                continue
            if self.meta[k]._p_state == 1:
                return True
        for k in self.data.keys():
            if self.data[k]._p_state == 1:
                return True
        return False
def isChanged ( self ) : persisted = [ self . meta , self . data , self . meta . info ] for p in persisted : if p . _p_state == 1 : return True for k in self . meta . keys ( ) : if not type ( self . meta [ k ] ) is PersistentMapping : continue if self . meta [ k ] . _p_state == 1 : return True for k in self . data . keys ( ) : if self . data [ k ] . _p_state == 1 : return True return False
Check if DB has been changed
Check if DB has been changed
"""Check if DB has been changed"""
self