Пример #1
0
 def init(self):
     if self.source_fit.isInvalid:
         # Very rare for this to happen, but be prepared for it
         saveddata_session.delete(self.source_fit)
         saveddata_session.flush()
         saveddata_session.refresh(self.victim_fit)
Пример #2
0
def remove(stuff):
    removeCachedEntry(type(stuff), stuff.ID)
    with sd_lock:
        saveddata_session.delete(stuff)
    commit()
Пример #3
0
def remove(stuff):
    removeCachedEntry(type(stuff), stuff.ID)
    with sd_lock:
        saveddata_session.delete(stuff)
    commit()