def _on_item_action(self, histories_manager_item, action):
     if action == ItemAction.EMPTY:
         gpaste_client.empty_history(histories_manager_item.name)
         self.update()
     elif action == ItemAction.DELETE:
         gpaste_client.delete_history(histories_manager_item.name)
     elif action == ItemAction.BACKUP:
         dialog = BackupHistoryDialog(self.get_toplevel(),
                                      histories_manager_item.name)
         dialog.run()
     else:
         pass
 def _on_item_action(self, histories_manager_item, action):
     if action == ItemAction.EMPTY:
         gpaste_client.empty_history(histories_manager_item.name)
         self.update()
     elif action == ItemAction.DELETE:
         gpaste_client.delete_history(histories_manager_item.name)
     elif action == ItemAction.BACKUP:
         dialog = BackupHistoryDialog(
             self.get_toplevel(),
             histories_manager_item.name
         )
         dialog.run()
     else:
         pass
Exemple #3
0
 def _on_backup_history(self, action, param):
     dialog = BackupHistoryDialog(self._window)
     dialog.run()
Exemple #4
0
 def _on_backup_history(self, action, param):
     dialog = BackupHistoryDialog(self._window)
     dialog.run()