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

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

Build the reply to complete the request

Definition at line 38 of file jep0133.py.

00038                                           :
            """Build the reply to complete the request"""
            if request.getFrom().getStripped() in administrators:
                reply = request.buildReply()
                form = DataForm(typ='result',data=[DataField(typ='hidden',name='FORM_TYPE',value=NS_ADMIN),DataField(label='The list of active users',name='activeuserjids',value=self.transport.userlist.keys(),typ='jid-multi')])
                reply.addChild(name='command',attrs={'xmlns':NS_COMMAND,'node':request.getTagAttr('command','node'),'sessionid':self.getSessionID(),'status':'completed'},payload=form)
                self.jabber.send(reply)
            else:
                self.jabber.send(Error(ERR_FORBIDDEN,request))
            raise NodeProcessed
            
class Registered_Users_Command(xmpp.commands.Command_Handler_Prototype):


Generated by  Doxygen 1.6.0   Back to index