Exemple #1
0
 def _():
     # No convenience method for the following because needing to do it is
     # *rare*.  It *should* be ugly; 99% of the time if you need to do this
     # you're making a mistake. -glyph
     siteStoreSubRef = siteStore.getItemByID(self.store.idInParent)
     self.cloneInto(siteStore, siteStoreSubRef)
     sched = IScheduler(self.store, None)
     if sched is not None:
         sched.migrateUp()
Exemple #2
0
 def _():
     oldAccounts = ss.query(LoginAccount)
     oldMethods = ss.query(LoginMethod)
     for x in list(oldAccounts) + list(oldMethods):
         x.deleteFromStore()
     self.cloneInto(ss, ss)
     sched = IScheduler(ss, None)
     if sched is not None:
         sched.migrateDown()