예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 def _on_backup_history(self, action, param):
     dialog = BackupHistoryDialog(self._window)
     dialog.run()
예제 #4
0
 def _on_backup_history(self, action, param):
     dialog = BackupHistoryDialog(self._window)
     dialog.run()