Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raganmd/0a1ba3c98a66cac0c6d6b841ffc9d268 to your computer and use it in GitHub Desktop.
Save raganmd/0a1ba3c98a66cac0c6d6b841ffc9d268 to your computer and use it in GitHub Desktop.
'''
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