plugin forums: first draft:
this plugin handle forums hierarchy, where forums link to topics which themselves link to blog nodes.
This commit is contained in:
parent
387c10cc0d
commit
cfcc673826
1 changed files with 301 additions and 4 deletions
|
|
@ -148,7 +148,10 @@ class XEP_0060(object):
|
|||
@param extra(dict): extra data used to configure request
|
||||
@return(Extra): filled Extra instance
|
||||
"""
|
||||
if extra is not None:
|
||||
if extra is None:
|
||||
rsm_request = None
|
||||
extra = {}
|
||||
else:
|
||||
# rsm
|
||||
rsm_args = {}
|
||||
for arg in ('max', 'after', 'before', 'index'):
|
||||
|
|
@ -189,9 +192,6 @@ class XEP_0060(object):
|
|||
if mam_args:
|
||||
assert 'mam' not in extra
|
||||
extra['mam'] = mam.MAMRequest(mam.buildForm(**mam_args))
|
||||
else:
|
||||
rsm_request = None
|
||||
extra = {}
|
||||
return Extra(rsm_request, extra)
|
||||
|
||||
def addManagedNode(self, node, **kwargs):
|
||||
|
|
|
|||
Loading…
Reference in a new issue