In my original post, I used HTML tags just to illustrate what I was
trying to do. In my actual implementation, I may use non-HTML XML, the
web2py template syntax, or maybe something else.

Ed


On Oct 1, 7:57 pm, JorgeRpo <[EMAIL PROTECTED]> wrote:
> why dont you use the template syntax?
>
> Ed wrote:
> > Hi,
>
> > I want to be able to access, using theORMbut not executesql(), all
> > the data within my database without knowing the names of the tables or
> > fields. Essentially, I want code that looks something like this
>
> >     for table in MyDb.tables:
> >         html += "<h2>" + str(table) + "</h2>" # works!
>
> >         html += "<table>"
>
> >    html += "<tr>"
> >         for field in table.fields:  # doesn't work
> >             html += "<th>" + str(field.name) + ":" +
> > "str(field.value)" + "</th>"
> >    html += "</tr>"
>
> >         for row in table.rows:  # doesn't work
> >        html += "<tr>"
>
> >        for cell in row.cells:
> >                 html += "<td>" + str(cell.field.name) + ":" +
> > "str(cell.field.value)" + "</td>"
>
> >        html += "</tr>"
>
> >         html += "</table>"
>
> > Is that possible (and legal) in Web2py?
>
> > Thanks,
> > Ed
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to