Have you tried putting some logging into the function?
logging.debug("OnBlipSubmitted Called") or something similar?
--
James Purser
Collaborynth
http://collaborynth.com.au
Mob: +61 406 576 553
Skype: purserj1977
Twitter: http://twitter.com/purserj
Okay here's the onBlipSubmitted function from my openausbot:
def onBlipSubmitted(properties, context):
"""Invoked when a new wavelet blip is created"""
oakey = "F8c6oBD4YQsvEAGJT8DUgL8p"
blip = context.GetBlipById(properties['blipId'])
user = blip.GetCreator()
words = blip.GetDocument().GetText()
logging.debug("user: %s" % user)
logging.debug("words: %s" % str(words))
commands = []
commands.append(Command("help", r"^[hH][eE][lL][pP]$", help))
commands.append(Command("search_rep",
r"^search_rep ?(?P<HOUSE>[\w]+)? ?(?P<SEAT>[\w\s\w]+)?$", search_rep))
commands.append(Command("search_party",
r"^search_party ?(?P<PARTY>[\w]+)?$", search_party))
commands.append(Command("search_hansard",
r"^search_hansard ?(?P<HOUSE>[\w]+)? ?(?P<STYPE>[\w]+)? ?(?P<SEARCH>[w\s
\w]+)?$", search_hansard))
for command in commands:
pat = re.compile(command.pattern)
m = pat.search(words)
if m:
logging.debug("groupdict: %s" % str(m.groupdict()))
command(properties, context, user, **m.groupdict())
return
return
Note the logging.debug calls in the function. They create log entries in
your appspot account which can be viewed by selecting Logs and then
Debug from the drop down.
--
James Purser
Collaborynth
Could you post your main function? Or if you're on the beta, my account
is the same as my gmail.