Esempio n. 1
0
    def get_param(self, name):
        """Get the value of a named parameter on this broker.

        Parameters are used to provide runtime information to individual
        provider backends.  See the method 'set_param' for more details.
        """
        name = EnchantStr(name)
        return name.decode(_e.broker_get_param(self._this, name.encode()))
Esempio n. 2
0
    def get_param(self,name):
        """Get the value of a named parameter on this broker.

        Parameters are used to provide runtime information to individual
        provider backends.  See the method 'set_param' for more details.
        """
        name = EnchantStr(name)
        return name.decode(_e.broker_get_param(self._this,name.encode()))
Esempio n. 3
0
    def get_param(self, name):
        """Get the value of a named parameter on this broker.

        Parameters are used to provide runtime information to individual
        provider backends.  See the method 'set_param' for more details.
        """
        param = _e.broker_get_param(self._this, name.encode())
        if param is not None:
            param = param.decode()
        return param
Esempio n. 4
0
    def get_param(self, name):
        """Get the value of a named parameter on this broker.

        Parameters are used to provide runtime information to individual
        provider backends.  See the method :py:meth:`set_param` for more details.

        .. warning::

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