コード例 #1
0
 def edit_command(self, command_to_edit, **options):
     if "group" in options:
         self.remove_command_aliases(command_to_edit)
     command_to_edit.set(**options)
     command_to_edit.data.set(**options)
     DBManager.session_add_expunge(command_to_edit)
     if "group" in options:
         self.add_db_command_aliases(command_to_edit)
     self.commit()
     self.rebuild()
コード例 #2
0
 def edit_command(self, command_to_edit, **options):
     command_to_edit.set(**options)
     command_to_edit.data.set(**options)
     DBManager.session_add_expunge(command_to_edit)
     self.commit()