forked from tatanus/apt2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinputModule.py
More file actions
35 lines (25 loc) · 787 Bytes
/
Copy pathinputModule.py
File metadata and controls
35 lines (25 loc) · 787 Bytes
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
from core.events import EventHandler
class inputModule(object):
def __init__(self, config, display, lock):
self.display = display
self.config = config
self.title = ""
self.requirements = []
self.description = ""
self.type = ""
self.lock = lock
def getType(self):
return self.type
def getTitle(self):
return self.title
def getDescription(self):
return self.description
def getRequirements(self):
return self.requirements
def process(self):
return
def go(self, inputfile):
self.display.verbose("-> Running : " + self.getTitle())
return self.process(inputfile)
def fire(self, trigger):
EventHandler.fire(trigger + ":INPUTFile")