Hi,
i had the same issue with events.BLIP_SUBMITTED in:
if __name__ == '__main__':
delicy = robot.Robot('deliciousrobot',
image_url='http://deliciousrobot.appspot.com/icon.png',
version='4',
profile_url='http://deliciousrobot.appspot.com/')
delicy.RegisterHandler(events.WAVELET_PARTICIPANTS_CHANGED,
OnParticipantsChanged)
delicy.RegisterHandler(events.WAVELET_SELF_ADDED, OnRobotAdded)
delicy.RegisterHandler(events.BLIP_SUBMITTED,
OnBlipSubmitted)
delicy.Run(debug=True)
What i finally did, after 2 hours of debugging, was to change to order
in which handlers are registered and now it works:
if __name__ == '__main__':
delicy = robot.Robot('deliciousrobot',
image_url='http://deliciousrobot.appspot.com/icon.png',
version='4',
profile_url='http://deliciousrobot.appspot.com/')
delicy.RegisterHandler(events.BLIP_SUBMITTED, OnBlipSubmitted)
delicy.RegisterHandler(events.WAVELET_PARTICIPANTS_CHANGED,
OnParticipantsChanged)
delicy.RegisterHandler(events.WAVELET_SELF_ADDED, OnRobotAdded)
delicy.Run(debug=True)
So try changing the order of your registered Handlers.
On Nov 11, 5:49 am, Sri <[email protected]> wrote:
> Hi Pam,
>
> Yes I've tried incrementing the version. The URL for the robot
> is:http://arthabot.appspot.com/
>
> - Sri
>
> On Nov 10, 1:48 am, "pamela (Google Employee)" <[email protected]>
> wrote:
>
>
>
> > Hi Sri-
>
> > Did you try deploying your app to a new app identifier? Did you try
> > incrementing the version of your Robot?
> > What is the URL of the robot?
>
> > - pamela
>
> > On Fri, Nov 6, 2009 at 3:12 AM, Sri <[email protected]> wrote:
>
> > > Hi,
>
> > > For some reason, I am unable to set handlers for all events except the
> > > WaveletselfAdded event. Here's the code:
> > > ---
> > > import logging
> > > import re
>
> > > from waveapi import events
> > > from waveapi import model
> > > from waveapi import robot
> > > from waveapi import document
> > > from waveapi import ops
> > > from waveapi import util
> > > from waveapi import simplejson
>
> > > def OnWaveletBlipCreated(properties, context):
> > > logging.debug("OnWaveletBlipCreated")
>
> > > def OnWaveletBlipRemoved(properties, context):
> > > logging.debug("OnWaveletBlipRemoved")
>
> > > def OnWaveletParticipantsChanged(properties, context):
> > > logging.debug("OnWaveletParticipantsChanged")
>
> > > def OnWaveletSelfAdded(properties, context):
> > > logging.debug("OnWaveletSelfAdded")
>
> > > def OnWaveletSelfRemoved(properties, context):
> > > logging.debug("OnWaveletSelfRemoved")
>
> > > def OnWaveletTimestampChanged(properties, context):
> > > logging.debug("OnWaveletTimestampChanged")
>
> > > def OnWaveletTitleChanged(properties, context):
> > > logging.debug("OnWaveletTitleChanged")
>
> > > def OnWaveletVersionChanged(properties, context):
> > > logging.debug("OnWaveletVersionChanged")
>
> > > def OnBlipContributorsChanged(properties, context):
> > > logging.debug("OnBlipContributorsChanged")
>
> > > def OnBlipDeleted(properties, context):
> > > logging.debug("OnBlipDeleted")
>
> > > def OnBlipSubmitted(properties, context):
> > > logging.debug("OnBlipSubmitted")
>
> > > def OnBlipTimestampChanged(properties, context):
> > > logging.debug("OnBlipTimestampChanged")
>
> > > def OnBlipVersionChanged(properties, context):
> > > logging.debug("OnBlipVersionChanged")
>
> > > def OnDocumentChanged(properties, context):
> > > logging.debug("OnDocumentChanged")
>
> > > def OnFormButtonClicked(properties, context):
> > > logging.debug("OnFormButtonClicked")
>
> > > if __name__ == '__main__':
> > > my_robot = robot.Robot('...',
> > > image_url='...',
> > > version='...',
> > > profile_url='...')
> > > my_robot.RegisterHandler(events.WAVELET_BLIP_CREATED,
> > > OnWaveletBlipCreated)
> > > my_robot.RegisterHandler(events.WAVELET_BLIP_REMOVED,
> > > OnWaveletBlipRemoved)
> > > my_robot.RegisterHandler(events.WAVELET_PARTICIPANTS_CHANGED,
> > > OnWaveletParticipantsChanged)
> > > my_robot.RegisterHandler(events.WAVELET_SELF_ADDED,
> > > OnWaveletSelfAdded)
> > > my_robot.RegisterHandler(events.WAVELET_SELF_REMOVED,
> > > OnWaveletSelfRemoved)
> > > my_robot.RegisterHandler(events.WAVELET_TIMESTAMP_CHANGED,
> > > OnWaveletTimestampChanged)
> > > my_robot.RegisterHandler(events.WAVELET_TITLE_CHANGED,
> > > OnWaveletTitleChanged)
> > > my_robot.RegisterHandler(events.WAVELET_VERSION_CHANGED,
> > > OnWaveletVersionChanged)
> > > my_robot.RegisterHandler(events.BLIP_CONTRIBUTORS_CHANGED,
> > > OnBlipContributorsChanged)
> > > my_robot.RegisterHandler(events.BLIP_DELETED, OnBlipDeleted)
> > > my_robot.RegisterHandler(events.BLIP_SUBMITTED, OnBlipSubmitted)
> > > my_robot.RegisterHandler(events.BLIP_TIMESTAMP_CHANGED,
> > > OnBlipTimestampChanged)
> > > my_robot.RegisterHandler(events.BLIP_VERSION_CHANGED,
> > > OnBlipVersionChanged)
> > > my_robot.RegisterHandler(events.DOCUMENT_CHANGED,
> > > OnDocumentChanged)
> > > my_robot.RegisterHandler(events.FORM_BUTTON_CLICKED,
> > > OnFormButtonClicked)
> > > my_robot.Run()
> > > ---
>
> > > I am completely out of ideas, I have spent 1 entire day on this. :-)
>
> > > Thanks,
> > > Sri
--
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=.