Changeset 683
- Timestamp:
- 06/15/08 16:24:09 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
oss/headstock/headstock/example/microblog/microblog/jabber/pubsub.py
r678 r683 339 339 self.xmpphost = host 340 340 self.session_id = session_id 341 if profile:342 self.collection = self.atompub.get_collection(profile.username)341 self.profile = profile 342 self.collection = self.atompub.get_collection(profile.username) 343 343 344 344 def initComponents(self): … … 372 372 if self.dataReady("_response"): 373 373 #discard the HTTP response for now 374 printself.recv("_response")374 member_entry = self.recv("_response") 375 375 376 376 if self.dataReady("inbox"): … … 386 386 'content-length': str(len(body)), 387 387 'slug': item.id}} 388 #self.send(params, '_request')388 self.send(params, '_request') 389 389 elif item.event == 'retract': 390 390 params = {'url': '%s/%s' % (self.collection.get_base_edit_uri().rstrip('/'), 391 391 item.id.encode('utf-8')), 392 392 'method': 'DELETE'} 393 #self.send(params, '_request')393 self.send(params, '_request') 394 394 395 395 if not self.anyReady():
