Logo Search packages:      
Sourcecode: telepathy-butterfly version File versions

def TelepathyButterfly::connmgr::MsnConnectionManager::GetParameters (   self,
  proto 
)

Returns the mandatory and optional parameters for the given proto.

Definition at line 42 of file connmgr.py.

00042                                   :
        """
        Returns the mandatory and optional parameters for the given proto.
        """
        if proto in self._protos:
            conn = self._protos[proto]
            ret = []
            for param_name, param_type in conn._mandatory_parameters.iteritems():
                param = (param_name,
                        telepathy.CONN_MGR_PARAM_FLAG_REQUIRED,
                        param_type,
                        '')
                ret.append(param)

            for param_name, param_type in conn._optional_parameters.iteritems():
                if param_name in conn._parameter_defaults:
                    default_value = conn._parameter_defaults[param_name]
                    param = (param_name,
                            telepathy.CONN_MGR_PARAM_FLAG_HAS_DEFAULT,
                            param_type,
                            default_value)
                else:
                    param = (param_name, 0, param_type, '')
                ret.append(param)
            return ret
        else:
            raise telepathy.NotImplemented('unknown protocol %s' % proto)
    
    def disconnected(self, conn):


Generated by  Doxygen 1.6.0   Back to index