Changeset 683

Show
Ignore:
Timestamp:
06/15/08 16:24:09 (2 months ago)
Author:
sylvain
Message:

uncommented POST request when an item is published

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • oss/headstock/headstock/example/microblog/microblog/jabber/pubsub.py

    r678 r683  
    339339        self.xmpphost = host 
    340340        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) 
    343343 
    344344    def initComponents(self): 
     
    372372            if self.dataReady("_response"): 
    373373                #discard the HTTP response for now 
    374                 print self.recv("_response") 
     374                member_entry = self.recv("_response") 
    375375                 
    376376            if self.dataReady("inbox"): 
     
    386386                                                       'content-length': str(len(body)), 
    387387                                                       'slug': item.id}} 
    388                             #self.send(params, '_request')  
     388                            self.send(params, '_request')  
    389389                    elif item.event == 'retract': 
    390390                        params = {'url': '%s/%s' % (self.collection.get_base_edit_uri().rstrip('/'), 
    391391                                                    item.id.encode('utf-8')),  
    392392                                  'method': 'DELETE'} 
    393                         #self.send(params, '_request')  
     393                        self.send(params, '_request')  
    394394 
    395395            if not self.anyReady():