/usr/share/pyshared/SCRIBES/TriggerSystem/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 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | from SCRIBES.SignalConnectionManager import SignalManager
class Manager(SignalManager):
def __init__(self, manager, editor):
editor.response()
SignalManager.__init__(self)
self.__init_attributes(manager, editor)
self.connect(manager, "quit", self.__quit_cb)
self.connect(manager, "add", self.__add_cb)
self.connect(manager, "remove", self.__remove_cb)
editor.response()
def __init_attributes(self, manager, editor):
self.__manager = manager
self.__editor = editor
self.__triggers = []
return False
def __destroy(self):
self.disconnect()
self.__triggers = []
del self
return False
def __add(self, trigger):
self.__triggers.append(trigger)
return False
def __remove(self, trigger):
if trigger in self.__triggers: self.__triggers.remove(trigger)
return False
def __update(self, function, trigger):
function(trigger)
self.__editor.set_data("triggers", self.__triggers)
return False
def __quit_cb(self, *args):
self.__destroy()
return False
def __add_cb(self, manager, trigger):
self.__update(self.__add, trigger)
return False
def __remove_cb(self, manager, trigger):
self.__update(self.__remove, trigger)
return False
|