示例#1
0
    def set_param(self,name,value):
        """Set the value of a named parameter on this broker.

        Parameters are used to provide runtime information to individual
        provider backends.  For example, the myspell provider will search
        any directories given in the "enchant.myspell.dictionary.path"
        parameter when looking for its dictionary files.
        """
        _e.broker_set_param(self._this,EnchantStr(name),EnchantStr(value))
示例#2
0
    def set_param(self, name, value):
        """Set the value of a named parameter on this broker.

        Parameters are used to provide runtime information to individual
        provider backends.  For example, the myspell provider will search
        any directories given in the "enchant.myspell.dictionary.path"
        parameter when looking for its dictionary files.
        """
        name = EnchantStr(name)
        value = EnchantStr(value)
        _e.broker_set_param(self._this, name.encode(), value.encode())
示例#3
0
    def set_param(self, name, value):
        """Set the value of a named parameter on this broker.

        Parameters are used to provide runtime information to individual
        provider backends.

        .. warning::

            This method does **not** work when using the Enchant C
            library version 2.0 and above
        """
        name = name.encode()
        if value is not None:
            value = value.encode()
        _e.broker_set_param(self._this, name, value)