view zpt/XML_table.zpt @ 4:e3ee1f358fe6

new version that doesn't use ZSQLExtend but the database connection more directly. new templates to go with that (returned data structures are different)
author casties
date Mon, 07 Jun 2010 14:02:17 +0000
parents 61a3764cd5fb
children
line wrap: on
line source

<?xml version="1.0" encoding="utf-8"?>
<table xmlns:tal="http://xml.zope.org/namespaces/tal" 
  tal:define="fields options/data/names" tal:attributes="name options/tablename">
  <row tal:repeat="row options/data">
	<column tal:repeat="field fields" tal:attributes="name field" tal:content="python:row[field]"/>
  </row>
</table>