Hi all,
I'm putting together a bot for integrating Google Wave and Plone for a
talk I'm going to be giving at the lca2010 (http://lca2010.linux.org.au)
Google Wave miniconf (booked yet? If not get to it ;))
Anyhoo, I'm at the point where I can grab the content of a Plone Page
and insert it into a blip, however I need to be able to render the html
tags.
The function below is what I have currently. It does append annotated
text to a blip, however not a blip that I can see. If anyone has an idea
of what I'm doing wrong that would be great.
def command_Open(properties, context, user, **kwargs):
"""Invoked when a plone address is fed"""
wavelet = context.GetRootWavelet()
blip = context.GetBlipById(properties['blipId'])
urlsub = kwargs.get("PLONE_URL", None)
text = "URL Submitted is: "
text += urlsub
blip.CreateChild().GetDocument().SetText(text)
s = xmlrpclib.ServerProxy('[SITE]')
doc = getattr(s, urlsub)
plone_text = doc.Title()
plone_text += "\n"
plone_text += doc.CookedBody()
context.builder.DocumentAppendMarkup(wavelet.GetWaveId(), wavelet.GetId(),
blip, plone_text)
'''blip.CreateChild().GetDocument().SetText(plone_text)'''
blip.GetDocument().AppendElement(document.FormElement(
document.ELEMENT_TYPE.BUTTON,
personid,
value='Submit
Changes',
))
--
James Purser
http://wavingtheshiny.collaborynth.com.au
Wave Addresses:
[email protected] (wave.google.com)
[email protected] (wavesandbox.com)
[email protected] (collaborynth.com.au FedOne Server)
Skype: purserj1977
GTalk: [email protected]
--
You received this message because you are subscribed to the Google Groups
"Google Wave API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-wave-api?hl=en.