Changeset 8740
- Timestamp:
- 09/06/07 13:38:44 (15 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/gajim_0.11.1/src/common/connection_handlers.py
r8726 r8740 25 25 26 26 from time import (altzone, daylight, gmtime, localtime, mktime, strftime, 27 time as time_time, timezone, tzname)27 time as time_time, timezone, tzname) 28 28 from calendar import timegm 29 29 … … 329 329 query = iq.setTag('query') 330 330 query.setNamespace(common.xmpp.NS_BYTESTREAM) 331 query.setAttr('sid', proxy['sid'])331 query.setAttr('sid', proxy['sid']) 332 332 activate = query.setTag('activate') 333 333 activate.setData(file_props['proxy_receiver']) … … 420 420 421 421 try: 422 streamhost = query.getTag('streamhost-used')422 streamhost = query.getTag('streamhost-used') 423 423 except: # this bytestream result is not what we need 424 424 pass … … 685 685 gajim.log.debug('DiscoverItemsGetCB') 686 686 node = iq_obj.getTagAttr('query', 'node') 687 if node is None:687 if node is None: 688 688 result = iq_obj.buildReply('result') 689 689 self.connection.send(result) … … 1260 1260 gajim.log.debug('rosterSetCB') 1261 1261 for item in iq_obj.getTag('query').getChildren(): 1262 jid = helpers.parse_jid(item.getAttr('jid'))1262 jid = helpers.parse_jid(item.getAttr('jid')) 1263 1263 name = item.getAttr('name') 1264 sub = item.getAttr('subscription')1265 ask = item.getAttr('ask')1264 sub = item.getAttr('subscription') 1265 ask = item.getAttr('ask') 1266 1266 groups = [] 1267 1267 for group in item.getTags('group'): … … 1346 1346 iq_obj = iq_obj.buildReply('result') 1347 1347 qp = iq_obj.setTag('time', 1348 namespace=common.xmpp.NS_TIME_REVISED)1348 namespace=common.xmpp.NS_TIME_REVISED) 1349 1349 qp.setTagData('utc', strftime('%Y-%m-%dT%TZ', gmtime())) 1350 1350 zone = -(timezone, altzone)[daylight] / 60
