Exemple #1
0
 def on_refresh_db(self, event):
     post_ga_event('application_click','refresh_db')
     try:
         utils.refresh_local_db()
         update_tree_view(self)
         wx.MessageBox('Refreshed db','Info', wx.OK | wx.ICON_INFORMATION)
     except FtpOverloadedException:
         log_info('Unable to refresh db due to overload')
         wx.MessageBox('Too many users right now, please try later', 'Info', wx.OK | wx.ICON_WARNING)
     except:
         log_info('Unable to refresh db')
         wx.MessageBox('Error during install %s' % sys.exc_info()[0], 'Info', wx.OK | wx.ICON_WARNING)
Exemple #2
0
def update_db(args):
    global initial_db_refresh_done
    utils.refresh_local_db()
    initial_db_refresh_done = True