Last active
June 6, 2018 06:25
-
-
Save raganmd/0a1ba3c98a66cac0c6d6b841ffc9d268 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
The MessageParser and General classes are intended to be the | |
classes that persist from project to project. The General class | |
here takes care of fucntions that are universal to all projects. If | |
the function in question applies to only a specific project, | |
then it fits better in the venue extension. | |
''' | |
messageParser = mod('messageParserEXT').MessageParser | |
class General(messageParser): | |
def __init__(self, my_op): | |
messageParser.__init__(self, my_op) | |
print("General init") | |
return | |
def Change_switch(self, message): | |
vals = message.get('vals') | |
op('constant1').par.value0 = vals | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment