Show
Ignore:
Timestamp:
08/31/07 10:59:52 (15 months ago)
Author:
asterix
Message:

use new dataform widget in groupchat config window

Location:
branches/gajim_0.11.1/src/common
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.1/src/common/connection_handlers.py

    r8661 r8668  
    18671867                if not node: 
    18681868                        return 
    1869                 dic = self.parse_data_form(node) 
    1870                 self.dispatch('GC_CONFIG', (helpers.get_full_jid_from_iq(iq_obj), dic)) 
     1869                self.dispatch('GC_CONFIG', (helpers.get_full_jid_from_iq(iq_obj), node)) 
    18711870 
    18721871        def _MucAdminCB(self, con, iq_obj): 
  • branches/gajim_0.11.1/src/common/connection.py

    r8642 r8668  
    11491149                self.connection.send(iq) 
    11501150 
    1151         def send_gc_config(self, room_jid, config): 
     1151        def send_gc_config(self, room_jid, form): 
    11521152                iq = common.xmpp.Iq(typ = 'set', to = room_jid, queryNS =\ 
    11531153                        common.xmpp.NS_MUC_OWNER) 
    11541154                query = iq.getTag('query') 
    1155                 self.build_data_from_dict(query, config) 
     1155                form.setAttr('type', 'submit') 
     1156                query.addChild(node = form) 
    11561157                self.connection.send(iq) 
    11571158