comparison src/server/blog.py @ 747:efbd28b3438e

static blog: fixed bad use of JID
author Goffi <goffi@goffi.org>
date Mon, 23 Nov 2015 15:57:15 +0100
parents 25984ca4aef2
children 7168a9873dde
comparison
equal deleted inserted replaced
746:25984ca4aef2 747:efbd28b3438e
126 prof_found = None 126 prof_found = None
127 if not prof_found or prof_found == C.SERVICE_PROFILE: 127 if not prof_found or prof_found == C.SERVICE_PROFILE:
128 return self.useTemplate(request, "static_blog_error", {'message': "Invalid nickname"}) 128 return self.useTemplate(request, "static_blog_error", {'message': "Invalid nickname"})
129 129
130 d = defer.Deferred() 130 d = defer.Deferred()
131 JID(self.host.bridge.asyncGetParamA('JabberID', 'Connection', 'value', profile_key=prof_found, callback=d.callback, errback=d.errback)) 131 self.host.bridge.asyncGetParamA('JabberID', 'Connection', 'value', profile_key=prof_found, callback=d.callback, errback=d.errback)
132 d.addCallbacks(lambda pub_jid_s: self.gotJID(pub_jid_s, request, prof_found)) 132 d.addCallbacks(lambda pub_jid_s: self.gotJID(pub_jid_s, request, prof_found))
133 return server.NOT_DONE_YET 133 return server.NOT_DONE_YET
134 134
135 def gotJID(self, pub_jid_s, request, profile): 135 def gotJID(self, pub_jid_s, request, profile):
136 pub_jid = JID(pub_jid_s) 136 pub_jid = JID(pub_jid_s)