Mercurial > hg > ChinaGisRestApi
annotate zpt/XML_schema_table.zpt @ 9:76ac7a721273
more rework of templates
author | casties |
---|---|
date | Wed, 21 Jul 2010 19:09:02 +0200 |
parents | a9a49f5765c9 |
children | b8922e13e7b5 |
rev | line source |
---|---|
2
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
1 <?xml version="1.0" encoding="utf-8"?> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
2 <table xmlns:tal="http://xml.zope.org/namespaces/tal" |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
3 tal:define="fields options/data/names" tal:attributes="name options/tablename"> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
4 <row tal:repeat="row options/data"> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
5 <column tal:repeat="field fields" tal:attributes="name field" tal:content="python:row[field]"/> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
6 </row> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
7 </table> |