Logo Search packages:      
Sourcecode: jabber-irc version File versions  Download package

def jep0133::List_Registered_Users_Command::cmdFirstStage (   self,
  conn,
  request 
)

Build the reply to complete the request

Definition at line 175 of file jep0133.py.

00175                                         :
        """Build the reply to complete the request"""
        if request.getFrom().getStripped() in config.admins:
            reply = request.buildReply('result')
            form = DataForm(typ='result',data=[DataField(typ='hidden',name='FORM_TYPE',value=NS_ADMIN),DataField(desc='The list of registered users',name='registereduserjids',value=self.userfile.keys(),typ='jid-multi')])
            reply.addChild(name='command',namespace=NS_COMMANDS,attrs={'node':request.getTagAttr('command','node'),'sessionid':self.getSessionID(),'status':'completed'},payload=[form])
            self._owner.send(reply)
        else:
            self._owner.send(Error(request,ERR_FORBIDDEN))
        raise NodeProcessed

class List_Online_Users_Command(xmpp.commands.Command_Handler_Prototype):


Generated by  Doxygen 1.6.0   Back to index