plugins XEP-0060, XEP-0277, groupblog: comments implementation (first draft, not finished yet):

- PubSub options constants are moved to XEP-0060
    - comments url are generated/parsed according to XEP-0277
    - microblog data can now have the following keys:
        - "comments", with the url as given in the <link> tag
        - "comments_service", with the jid of the PubSub service hosting the comments
        - "comments_node", with the parsed node
    - comments nodes use different access_model according to parent microblog item access
    - publisher is not verified yet, see FIXME warning
    - so far, comments node are automatically subscribed
    - some bug fixes
This commit is contained in:
Goffi 2013-05-20 23:21:29 +02:00
commit c1b5ccf1d2

View file

@ -320,6 +320,6 @@ class ElementParser(object):
parser.ElementEvent = onElement
parser.DocumentEndEvent = onEnd
tmp = domish.Element((None, "s"))
tmp.addRawXml(string.replace('\n', '').replace('\t', ''))
tmp.addRawXml(string.replace('\n', ' ').replace('\t', ' '))
parser.parse(tmp.toXml().encode('utf-8'))
return self.result.firstChildElement()