Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0277.py @ 311:0aa6ca6cdbdd
plugin group blog: group blog now use PEP to take profit of autosubscribe
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 12 Apr 2011 20:40:47 +0200 |
parents | 53adec87d1d7 |
children | b0b773f432e5 |
comparison
equal
deleted
inserted
replaced
310:53adec87d1d7 | 311:0aa6ca6cdbdd |
---|---|
157 If the node already exists, it change options | 157 If the node already exists, it change options |
158 @param access: Node access model, according to xep-0060 #4.5 | 158 @param access: Node access model, according to xep-0060 #4.5 |
159 @param profile_key: profile key""" | 159 @param profile_key: profile key""" |
160 | 160 |
161 _jid, xmlstream = self.host.getJidNStream(profile_key) | 161 _jid, xmlstream = self.host.getJidNStream(profile_key) |
162 if not _jid: | |
163 error(_("Can't find profile's jid")) | |
164 return | |
162 _options = {OPT_ACCESS_MODEL:access, OPT_PERSIST_ITEMS:1, OPT_MAX_ITEMS:-1} | 165 _options = {OPT_ACCESS_MODEL:access, OPT_PERSIST_ITEMS:1, OPT_MAX_ITEMS:-1} |
163 def cb(result): | 166 def cb(result): |
164 #Node is created with right permission | 167 #Node is created with right permission |
165 debug(_("Microblog node has now access %s") % access) | 168 debug(_("Microblog node has now access %s") % access) |
166 | 169 |