def clearRelatedData(self): """ Removes all related information from database for this environment. """ Cache.delete(self._key) Storage.delete(self._key) for _, v in self._idGenerators.items(): v.release()
def clearRelatedData(self): """ Removes all related information from database for this environment. """ from uds.core.util.Cache import Cache from uds.core.util.Storage import Storage Cache.delete(self._key) Storage.delete(self._key) for __, v in six.iteritems(self._idGenerators): v.release()
def clearRelatedData(self): ''' Removes all related information from database for this environment. ''' from uds.core.util.Cache import Cache from uds.core.util.Storage import Storage Cache.delete(self._key) Storage.delete(self._key) for __, v in self._idGenerators.iteritems(): v.release()