[go: up one dir, main page]

Menu

[r7]: / gizmod3 / scripts / Gizmod.py  Maximize  Restore  History

Download this file

61 lines (47 with data), 1.5 kB

 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
50
51
52
53
54
55
56
57
58
59
60
#***
#*********************************************************************
#*************************************************************************
#***
#*** GizmoDaemon Config Script v3:0
#*** GizmoDaemon.py
#***
#*****************************************
#*****************************************
#***
############################
# Imports
##########################
from GizmoDaemon import *
############################
# Dispatcher Class definition
##########################
class GizmodDispatcher(GizmodEventHandler):
"""
Main class that handles all of the incoming events
"""
############################
# Public Functions
##########################
def getInitialized(self):
""" Gets whether or not the object has been initialized """
return self.initialized
def initialize(self):
"""
This python function gets called by GizmoDeamon and is intended to allow for
user specific initialization code to be executed during program startup.
"""
print "GizmoDaemon Config Script v" + Gizmod.getVersion() + " -- Initializing"
self.initialized = True
############################
# Private Functions
##########################
def __construct__(self):
"""
Default Constructor -- Use this rather than __init__
"""
self.initialized = False
############################
# Dispatcher class end
##########################
# To run user defined code post initializing, see User.py
# which is executed after this file is parsed