Hi James - According to that code, the appended markup should be in the blip corresponding to blipId in the properties. If you are not seeing the appended markup, it is possible that you are appending invalid tags. The supported tags are listed here: http://wave-api-faq.appspot.com/#htmlmarkup
You could try removing all the HTML from plone_text to see if that works successfully. That would indicate that's the issue. - pamela On Wed, Dec 23, 2009 at 9:35 AM, James Purser <[email protected]> wrote: > 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. > > > -- 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.
