def __init__(self,
				 configparser_instance=None,
				 config_change_trigger= lambda x:True,
				 decorated_manager=None,
				 # The following args will only be used if we need to
				 # create a default PluginManager
				 categories_filter=None, 
				 directories_list=None, 
				 plugin_info_ext="yapsy-plugin"):
		"""
		Create the plugin manager and record the ConfigParser instance
		that will be used afterwards.
		
		The ``config_change_trigger`` argument can be used to set a
		specific method to call when the configuration is
		altered. This will let the client application manage the way
		they want the configuration to be updated (e.g. write on file
		at each change or at precise time intervalls or whatever....)
		"""
		if categories_filter is None:
			categories_filter = {"Default":IPlugin}
		# Create the base decorator class
		PluginManagerDecorator.__init__(self,decorated_manager,
										categories_filter,
										directories_list,
										plugin_info_ext)
		self.setConfigParser(configparser_instance, config_change_trigger)
    def __init__(self,
                 decorated_manager=None,
                 categories_filter={"Default":IPlugin},
                 directories_list=None,
                 plugin_info_ext="yapsy-plugin"):
        """
        Create the plugin manager and record the ConfigParser instance
        that will be used afterwards.

        The ``config_change_trigger`` argument can be used to set a
        specific method to call when the configuration is
        altered. This will let the client application manage the way
        they want the configuration to be updated (e.g. write on file
        at each change or at precise time intervalls or whatever....)
        """
        # Create the base decorator class
        PluginManagerDecorator.__init__(self,decorated_manager,
                                        categories_filter,
                                        directories_list,
                                        plugin_info_ext)
        self.setPluginInfoClass(VersionedPluginInfo)
        # prepare the storage for the early version of the plugins,
        # for which only the latest version is the one that will be
        # kept in the "core" plugin storage.
        self._prepareAttic()
	def __init__(self,
				 plugin_install_dir=None,
				 decorated_manager=None,
				 # The following args will only be used if we need to
				 # create a default PluginManager
				 categories_filter={"Default":IPlugin}, 
				 directories_list=None, 
				 plugin_info_ext="yapsy-plugin"):
		"""
		Create the plugin manager and set up the directory where to
		install new plugins.

		Arguments
		
		  ``plugin_install_dir``
		    The directory where new plugins to be installed will be copied.

		.. warning:: If ``plugin_install_dir`` does not correspond to
		    an element of the ``directories_list``, it is appended to
		    the later.
		    
		"""
		# Create the base decorator class
		PluginManagerDecorator.__init__(self,
										decorated_manager,
										categories_filter,
										directories_list,
										plugin_info_ext)
		# set the directory for new plugins
		self.plugins_places=[]
		self.setInstallDir(plugin_install_dir)
    def __init__(
            self,
            configparser_instance=None,
            config_change_trigger=lambda x: True,
            decorated_manager=None,
            # The following args will only be used if we need to
            # create a default PluginManager
            categories_filter={"Default": IPlugin},
            directories_list=None,
            plugin_info_ext="yapsy-plugin"):
        """
		Create the plugin manager and record the ConfigParser instance
		that will be used afterwards.
		
		The ``config_change_trigger`` argument can be used to set a
		specific method to call when the configuration is
		altered. This will let the client application manage the way
		they want the configuration to be updated (e.g. write on file
		at each change or at precise time intervalls or whatever....)
		"""
        # Create the base decorator class
        PluginManagerDecorator.__init__(self, decorated_manager,
                                        categories_filter, directories_list,
                                        plugin_info_ext)
        self.setConfigParser(configparser_instance, config_change_trigger)
Exemplo n.º 5
0
	def __init__(self, 
				 decorated_manager=None,
				 categories_filter={"Default":IPlugin}, 
				 directories_list=None, 
				 plugin_info_ext="yapsy-plugin"):
		"""
		Create the plugin manager and record the ConfigParser instance
		that will be used afterwards.
		
		The ``config_change_trigger`` argument can be used to set a
		specific method to call when the configuration is
		altered. This will let the client application manage the way
		they want the configuration to be updated (e.g. write on file
		at each change or at precise time intervalls or whatever....)
		"""
		# Create the base decorator class
		PluginManagerDecorator.__init__(self,decorated_manager,
										categories_filter,
										directories_list,
										plugin_info_ext)
		self.setPluginInfoClass(VersionedPluginInfo)
		# prepare the storage for the early version of the plugins,
		# for which only the latest version is the one that will be
		# kept in the "core" plugin storage.
		self._prepareAttic()
    def __init__(
            self,
            plugin_install_dir=None,
            decorated_manager=None,
            # The following args will only be used if we need to
            # create a default PluginManager
            categories_filter={"Default": IPlugin},
            directories_list=None,
            plugin_info_ext="yapsy-plugin"):
        """
		Create the plugin manager and set up the directory where to
		install new plugins.

		Arguments
		
	        ``plugin_install_dir``
		    The directory where new plugins to be installed will be copied.

		.. warning:: If ``plugin_install_dir`` does not correspond to
		             an element of the ``directories_list``, it is
		             appended to the later.
			
		"""
        # Create the base decorator class
        PluginManagerDecorator.__init__(self, decorated_manager,
                                        categories_filter, directories_list,
                                        plugin_info_ext)
        # set the directory for new plugins
        self.plugins_places = []
        self.setInstallDir(plugin_install_dir)
Exemplo n.º 7
0
 def __init__(self,
              decorated_manager=None,
              categories_filter=None,
              directories_list=None,
              plugin_info_ext="yapsy-plugin"):
     if categories_filter is None:
         categories_filter = {"Default": IPlugin}
     # Create the base decorator class
     PluginManagerDecorator.__init__(self, decorated_manager,
                                     categories_filter, directories_list,
                                     plugin_info_ext)
     # prepare the mapping of the latest version of each plugin
     self.rejectedPlugins = []
Exemplo n.º 8
0
	def __init__(self, 
				 decorated_manager=None,
				 categories_filter={"Default":IPlugin}, 
				 directories_list=None, 
				 plugin_info_ext="yapsy-plugin"):
		"""
		"""
		# Create the base decorator class
		PluginManagerDecorator.__init__(self,decorated_manager,
										categories_filter,
										directories_list,
										plugin_info_ext)
		# prepare the mapping of the latest version of each plugin
		self.rejectedPlugins = [] 
Exemplo n.º 9
0
 def __init__(self,
              decorated_manager=None,
              categories_filter={"Default": IPlugin},
              directories_list=None,
              plugin_info_ext="yapsy-plugin"):
     # Create the base decorator class
     PluginManagerDecorator.__init__(self, decorated_manager,
                                     categories_filter, directories_list,
                                     plugin_info_ext)
     self.setPluginInfoClass(VersionedPluginInfo)
     # prepare the storage for the early version of the plugins,
     # for which only the latest version is the one that will be
     # kept in the "core" plugin storage.
     self._prepareAttic()
Exemplo n.º 10
0
	def __init__(self, 
				 decorated_manager=None,
				 categories_filter={"Default":IPlugin}, 
				 directories_list=None, 
				 plugin_info_ext="yapsy-plugin"):
		# Create the base decorator class
		PluginManagerDecorator.__init__(self,decorated_manager,
										categories_filter,
										directories_list,
										plugin_info_ext)
		self.setPluginInfoClass(VersionedPluginInfo)
		# prepare the storage for the early version of the plugins,
		# for which only the latest version is the one that will be
		# kept in the "core" plugin storage.
		self._prepareAttic()
 def __init__(
         self,
         configparser_instance=None,
         config_change_trigger=lambda: True,
         decorated_manager=None,
         # The following args will only be used if we need to
         # create a default PluginManager
         categories_filter=None,
         directories_list=None,
         plugin_info_ext="yapsy-plugin"):
     if categories_filter is None:
         categories_filter = {"Default": IPlugin}
     # Create the base decorator class
     PluginManagerDecorator.__init__(self, decorated_manager,
                                     categories_filter, directories_list,
                                     plugin_info_ext)
     self.setConfigParser(configparser_instance, config_change_trigger)
	def __init__(self,
				 configparser_instance=None,
				 config_change_trigger= lambda :True,
				 decorated_manager=None,
				 # The following args will only be used if we need to
				 # create a default PluginManager
				 categories_filter=None, 
				 directories_list=None, 
				 plugin_info_ext="yapsy-plugin"):
		if categories_filter is None:
			categories_filter = {"Default":IPlugin}
		# Create the base decorator class
		PluginManagerDecorator.__init__(self,decorated_manager,
										categories_filter,
										directories_list,
										plugin_info_ext)
		self.setConfigParser(configparser_instance, config_change_trigger)
Exemplo n.º 13
0
 def __init__(
         self,
         plugin_install_dir=None,
         decorated_manager=None,
         # The following args will only be used if we need to
         # create a default PluginManager
         categories_filter=None,
         directories_list=None,
         plugin_info_ext="yapsy-plugin"):
     if categories_filter is None:
         categories_filter = {"Default": IPlugin}
     # Create the base decorator class
     PluginManagerDecorator.__init__(self, decorated_manager,
                                     categories_filter, directories_list,
                                     plugin_info_ext)
     # set the directory for new plugins
     self.plugins_places = []
     self.setInstallDir(plugin_install_dir)
Exemplo n.º 14
0
	def __init__(self,
				 plugin_install_dir=None,
				 decorated_manager=None,
				 # The following args will only be used if we need to
				 # create a default PluginManager
				 categories_filter=None, 
				 directories_list=None, 
				 plugin_info_ext="yapsy-plugin"):
		if categories_filter is None:
			categories_filter = {"Default":IPlugin}
		# Create the base decorator class
		PluginManagerDecorator.__init__(self,
										decorated_manager,
										categories_filter,
										directories_list,
										plugin_info_ext)
		# set the directory for new plugins
		self.plugins_places=[]
		self.setInstallDir(plugin_install_dir)