Mercurial > hg > ChinaGisRestApi
diff zpt/JSONHTML_schema_table.zpt @ 70:9ec7e32e8ad3
working on maps
nicer HTML (with xhtml DTD)
better unicode handling for psycopg
author | casties |
---|---|
date | Tue, 23 Nov 2010 17:16:25 +0100 |
parents | c6c47034d2a4 |
children |
line wrap: on
line diff
--- a/zpt/JSONHTML_schema_table.zpt Tue Nov 23 12:54:22 2010 +0100 +++ b/zpt/JSONHTML_schema_table.zpt Tue Nov 23 17:16:25 2010 +0100 @@ -1,4 +1,7 @@ -<html tal:define="layout python:request.get('layout','pre'); element_id python:request.get('element_id',None) +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" + tal:define="layout python:request.get('layout','pre'); element_id python:request.get('element_id',None) schema options/schema; table options/table; data python:here.getTable(schema=schema,table=table);"> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8">