def __init__(self): FileChangeConditionPlugin.__init__( self, basename=plugin_name(__file__), name=_("Template"), description=_("Explain here what it does"), author="John Smith", copyright="Copyright (c) 2016", icon='puzzle', help_string=HELP, version="0.1.0", ) # the icon resource is only needed if the plugin uses a custom icon # self.graphics.append('plugin_icon.png') # the items below might be not needed and can be deleted if the # plugin does not have a configuration panel self.resources.append('plugin_template.glade') self.builder = self.get_dialog('plugin_template') self.plugin_panel = None self.forward_allowed = False # forward not enabled by default # define this only if the plugin provides one or more scripts # self.scripts.append('needed_script.sh') # mandatory or anyway structural variables and object values follow: self.watched_path = None # file or directory to observe self.summary_description = None # must be set for all plugins # this variable is defined here only for demonstrational purposes self.value = None
def __init__(self): FileChangeConditionPlugin.__init__( self, basename=plugin_name(__file__), name=_("Directory Monitor"), description=_("Monitor a Directory for Changes"), author=APP_AUTHOR, copyright=APP_COPYRIGHT, icon='folder', help_string=HELP, version=APP_VERSION, ) self.stock = True self.builder = self.get_dialog('plugin_cond-fs-dirchange') self.plugin_panel = None self.forward_allowed = False # forward not enabled by default self.watched_path = None # file or directory to observe self.summary_description = None # must be set for all plugins
def __init__(self): FileChangeConditionPlugin.__init__( self, basename=plugin_name(__file__), name=_("File Monitor"), description=_("Monitor a Single File for Changes"), author=APP_AUTHOR, copyright=APP_COPYRIGHT, icon='file', help_string=HELP, version=APP_VERSION, ) self.stock = True self.builder = self.get_dialog('plugin_cond-fs-filechange') self.plugin_panel = None self.forward_allowed = False # forward not enabled by default self.watched_path = None # file or directory to observe self.summary_description = None # must be set for all plugins