:
"""Pre-cache all album and song info."""if self.ampache_conn.is_authenticated() == False:
self.create_dialog_alert("warn", _("Not Authenticated"), True)
returnFalsetry: # check to see if this function is runningif self.button_pre_cache_locked == True:
print"Already Running"
self.create_dialog_alert("info", _("Pre-Cache already in progress."))
returnFalseexcept:
pass
answer = self.create_dialog_ok_or_close(_("Pre-Cache"), _("This will cache all of the artist, album, and song information (not the songs themselves) locally to make Viridian respond faster.\n\nThis process can take a long time depending on the size of your catalog. Proceed?"))
if answer != "ok":
returnFalse
self.button_pre_cache_locked = True
gobject.idle_add(self.__button_pre_cache_info_clicked)
#thread.start_new_thread(self.__button_pre_cache_info_clicked, (None,))