Hey, first I have to say sorry for my bad english. I hope you all can understand me :(
I did the Google Wave Robot Tutorial with Python. http://samuirai-robot.appspot.com/_wave/capabilities.xml The XML File works, also add the Robot as a Contact to a Wave works. I also get no errors... But the Robot doesn't do anything in the Wave. I can't understand why?? You can add the Robot with [email protected] Here the codes: [app.yaml] --------------------------- application: samuirai-robot version: 1 runtime: python api_version: 1 handlers: - url: /_wave/.* script: robot.py - url: /assets static_dir: assets - url: /.* static_files: wave.png upload: wave.png [robot.py] --------------------------- from waveapi import events from waveapi import model from waveapi import robot def OnParticipantsChanged(properties, context): """Invoked when any participants have been added/removed.""" added = properties['participantsAdded'] for p in added: Notify(context) def OnRobotAdded(properties, context): """Invoked when the robot has been added.""" root_wavelet = context.GetRootWavelet() root_wavelet.CreateBlip().GetDocument().SetText("I'm alive!") def Notify(context): root_wavelet = context.GetRootWavelet() root_wavelet.CreateBlip().GetDocument().SetText("Hi everybody!") if __name__ == '__main__': myRobot = robot.Robot('samuirai-robot', image_url='http://samuirai-robot.appspot.com/wave.png', version='1', profile_url='http://samuirai-robot.appspot.com/') myRobot.RegisterHandler(events.WAVELET_PARTICIPANTS_CHANGED, OnParticipantsChanged) myRobot.RegisterHandler(events.WAVELET_SELF_ADDED, OnRobotAdded) myRobot.Run() I hope anybody can help me. kind regards, Samu ;) -- 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=.
