Mercurial > hg > ChinaGisRestApi
annotate zpt/HTML_index.zpt @ 54:54940a99f12d
more work on json store
author | casties |
---|---|
date | Mon, 20 Sep 2010 15:39:58 +0200 |
parents | ed8db63fab4f |
children | 9ec7e32e8ad3 |
rev | line source |
---|---|
45 | 1 <html tal:define="layout python:request.get('layout','table'); element_id python:request.get('element_id',None); |
2 data here/getListOfSchemas"> | |
2
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
3 <head> |
4
e3ee1f358fe6
new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents:
2
diff
changeset
|
4 <meta http-equiv="content-type" content="text/html;charset=utf-8"> |
2
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
5 <title tal:content="template/title">The title</title> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
6 </head> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
7 <body> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
8 <h2>List of schemas</h2> |
9 | 9 <tal:block tal:condition="python:layout=='select'"> |
4
e3ee1f358fe6
new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents:
2
diff
changeset
|
10 <select tal:attributes="id element_id"> |
45 | 11 <option tal:repeat="sch data/data" tal:content="sch"/> |
2
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
12 </select> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
13 </tal:block> |
9 | 14 <tal:block tal:condition="python:layout=='table'"> |
4
e3ee1f358fe6
new version that doesn't use ZSQLExtend but the database connection more directly.
casties
parents:
2
diff
changeset
|
15 <table tal:attributes="id element_id"> |
45 | 16 <tr tal:repeat="row data/rows"> |
9 | 17 <td><a tal:define="sch python:row[0]" tal:attributes="href sch" tal:content="sch"/></td> |
2
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
18 </tr> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
19 </table> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
20 </tal:block> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
21 </body> |
61a3764cd5fb
new version RestDbInterface with working traversal and templates
casties
parents:
diff
changeset
|
22 </html> |