Verified the fix in 1.68. Thanks.
On Oct 20, 9:14 pm, Thadeus Burgess <[email protected]> wrote:
> You need to download the latest developmental version.
>
> Or wait until 1.68 is released (which will be soon I believe)
>
> -Thadeus
>
> On Tue, Oct 20, 2009 at 10:56 AM, Adi <[email protected]> wrote:
>
> > You mean I have to download web2py once again?
>
> > On Oct 20, 7:34 pm, mdipierro <[email protected]> wrote:
> > > oops. There is a bug. I just fixed it in trunk and uploading. please
> > > give it a try in 5 minutes. The root should be 'document'
>
> > > Massimo
>
> > > On Oct 20, 8:43 am, Adi <[email protected]> wrote:
>
> > > > Version 1.67.2 (2009-09-28 16:29:33)
>
> > > > On Oct 20, 6:32 pm, mdipierro <[email protected]> wrote:
>
> > > > > This seems to have already be taken care of long ago. Which web2py
> > > > > version are you using?
>
> > > > > Massimo
>
> > > > > On Oct 20, 8:18 am, mdipierro <[email protected]> wrote:
>
> > > > > > This is a good point. There should be a <root> and it needs to be
> > > > > > default. I will make sure I add this to 1.68
>
> > > > > > On Oct 15, 1:55 am, Adi <[email protected]> wrote:
>
> > > > > > > Hi,
>
> > > > > > > I have an HTTPService which returns a result of a query as xml,
> > which
> > > > > > > I need to display in Flex 3 frontend.
>
> > > > > > > Here's the simplified code snippet:
>
> > > > > > > @service.xml
> > > > > > > def records():
> > > > > > > rows = db().select(db.videodata.id, db.videodata.title,
> > > > > > > db.videodata.thumbnail, \
> > > > > > > db.videodata.flvcopy,
> > > > > > > db.videodata.description)
> > > > > > > return rows
>
> > > > > > > When I call this service, the results look like this:
>
> > > > > > > <item><id>1</id><title>Test Video</title><flvcopy></
> > > > > > > flvcopy><thumbnail>videodata.thumbnail.
> > > > > > > 9c41e14b670ddbd2.61616a74616b315f312e6a7067.jpg</
> > > > > > > thumbnail><description>This is the description of a test video</
> > > > > > > description></item><item><id>2</id><title>Another File</
> > > > > > > title><flvcopy></flvcopy><thumbnail>videodata.thumbnail.
> > > > > > > 9ef97a75a1aed552.6261636b626c75652e676966.gif</
> > > > > > > thumbnail><description>This is a second record for testing</
> > > > > > > description></item>
>
> > > > > > > Basically there is no "root" element, just query results in every
> > > > > > > <item></item> tag. This is resulting in parsing error. How can I
> > > > > > > return the results of the query in a well-formed xml?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---