I want to write a generic table browser ZSQL method and am having
trouble getting the output that I want.

Given a ZSQLMethod that looks like this:
ID:        browse_table
Arguments: table:string=""

Script:
SELECT * FROM <dtml-var table>

I'm trying to write a DTML method to display the results of this
method WITH COLUMN NAMES.  For the life of me, I can't figure out how
to do this.

Basically, I have:

<dtml-in "browse_table(table='xxxx')" size=1>

  <dtml-in sequence-item>
    <dtml-var sequence-item>
  </dtml-in>

</dtml-in>

The inner sequence-item gives me the data, but how to I determine the
column name?

-jon

_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to