Changeset 9838

Show
Ignore:
Timestamp:
06/25/08 09:35:35 (5 months ago)
Author:
asterix
Message:

acknowledge privacy list set iqs as required by XEP-0016

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/connection_handlers.py

    r9837 r9838  
    21722172                raise common.xmpp.NodeProcessed 
    21732173 
     2174        def _PrivacySetCB(self, con, iq_obj): 
     2175                ''' 
     2176                Privacy lists (XEP 016) 
     2177 
     2178                A list has been set 
     2179                ''' 
     2180                gajim.log.debug('PrivacySetCB') 
     2181                result = iq_obj.buildReply('result') 
     2182                q = result.getTag('query') 
     2183                if q: 
     2184                        result.delChild(q) 
     2185                self.connection.send(result) 
     2186                raise common.xmpp.NodeProcessed 
     2187 
    21742188        def _getRosterCB(self, con, iq_obj): 
    21752189                if not self.connection: 
     
    23882402                con.RegisterHandler('iq', self._search_fields_received, 'result', 
    23892403                        common.xmpp.NS_SEARCH) 
     2404                con.RegisterHandler('iq', self._PrivacySetCB, 'set', 
     2405                        common.xmpp.NS_PRIVACY) 
    23902406                con.RegisterHandler('iq', self._PubSubCB, 'result') 
    23912407                con.RegisterHandler('iq', self._ErrorCB, 'error')