Hi List,

I've been playing around with the TGWebServices and I'm trying to
parse the XML payload of an event notification. My controller code is
very simple:

class WebServices(WebServicesRoot):
    @wsexpose()
    def bakeryHook(self, value):
        "Do something"
        return "Thank you."

The error I'm getting is:
ValueError: invalid literal for int(): id type

The XML payload looks like this:

<image>
  <collection-id type="integer">18</collection-id>
  <content-type>image/jpeg</content-type>
  <created-at type="datetime">2007-06-06T10:07:34-04:00</created-at>
</image>

Any help is appreciated!

Thank you.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to