/usr/share/pyshared/SCRIBES/TriggerManager.py is in scribes 0.4~r543-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | class TriggerManager(object):
def __init__(self, editor):
self.__init_attributes(editor)
def __init_attributes(self, editor):
self.__editor = editor
self.__triggers = []
return
def create_trigger(self, name, accelerator="", description="", category="", error=True, removable=True):
trigger = self.__editor.create_trigger(name, accelerator, description, category, error, removable)
self.__editor.add_trigger(trigger)
self.__triggers.append(trigger)
return trigger
def remove_triggers(self):
[self.__editor.remove_trigger(trigger) for trigger in self.__triggers]
return False
|