diff zpt/KML_schema_table.zpt @ 278:4ade9b80b563 default tip

more cleanup. descriptions work better now.
author casties
date Fri, 24 Feb 2012 16:41:30 +0100
parents d1b43624cc63
children
line wrap: on
line diff
--- a/zpt/KML_schema_table.zpt	Thu Feb 23 21:37:37 2012 +0100
+++ b/zpt/KML_schema_table.zpt	Fri Feb 24 16:41:30 2012 +0100
@@ -1,16 +1,18 @@
 <?xml version="1.0" encoding="utf-8"?>
 <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:tal="http://xml.zope.org/namespaces/tal" 
-  tal:define="gisIdField python:request.get('gis_id_field',None); colorField python:request.get('color_field','red');
-  latField python:request.get('lat_field',None); lonField python:request.get('lon_field',None); geomField python:request.get('geometry_field','point');
-  sortBy python:request.get('sort_field',1); ids python:request.get('id');
+  tal:define="gisIdField python:request.get('gis_id_field',None); 
+  colorField python:request.get('color_field','red');
+  latField python:request.get('lat_field',None); 
+  lonField python:request.get('lon_field',None); 
+  geomField python:request.get('geometry_field','point');
+  sortBy python:request.get('sort_field',1); 
+  ids python:request.get('id');
   from_year_name python:request.get('from_year_name','from_year');
   until_year_name python:request.get('until_year_name','until_year');
   schema options/schema; table options/table; 
-  data python:here.getKmlData(schema=schema,table=table,
-  sortBy=sortBy,ids=ids,gisIdField=gisIdField,
-  latField=latField,lonField=lonField,
-  geomField=geomField,colorField=colorField,
-  from_year_name=from_year_name,until_year_name=until_year_name ); 
+  data python:here.getKmlData(schema=schema,table=table,sortBy=sortBy,ids=ids,gisIdField=gisIdField,
+  latField=latField,lonField=lonField,geomField=geomField,colorField=colorField,
+  from_year_name=from_year_name,until_year_name=until_year_name); 
   withLine python:request.get('connect_line',None);">
   <Document>
     <Style id="marker_icon_red">
@@ -185,11 +187,13 @@
       <description tal:content="place/description">
       ERD-0815: ERD-0815
       </description>
-      <TimeStamp tal:condition="python:here.trydatahas_key(data,0,'TimeStamp')"><when tal:content="place/TimeStamp"></when>
+      <TimeStamp tal:condition="python:here.trydatahas_key(data,0,'TimeStamp')">
+        <when tal:content="place/TimeStamp"></when>
       </TimeStamp>
-      <TimeSpan tal:condition="python:here.trydatahas_key(data,0,'TimeSpan0')"><begin tal:content="place/TimeSpan0" ></begin><end tal:content="place/TimeSpan1"></end>
+      <TimeSpan tal:condition="python:here.trydatahas_key(data,0,'TimeSpan0')">
+        <begin tal:content="place/TimeSpan0" ></begin>
+        <end tal:content="place/TimeSpan1"></end>
       </TimeSpan>
-      
       <styleUrl tal:content="place/icon" >#marker_icon_red</styleUrl>
       <Point tal:condition="python:place.has_key('icon')">
         <extrude>1</extrude>
@@ -201,11 +205,13 @@
       <description tal:content="place/description" >
       ERD-0815: ERD-0815
       </description>
-      <TimeStamp tal:condition="python:here.trydatahas_key(data,0,'TimeStamp')"><when tal:content="place/TimeStamp"></when>
+      <TimeStamp tal:condition="python:here.trydatahas_key(data,0,'TimeStamp')">
+        <when tal:content="place/TimeStamp"></when>
       </TimeStamp>
-      <TimeSpan tal:condition="python:here.trydatahas_key(data,0,'TimeSpan0')"><begin tal:content="place/TimeSpan0" ></begin><end tal:content="place/TimeSpan1"></end>
+      <TimeSpan tal:condition="python:here.trydatahas_key(data,0,'TimeSpan0')">
+        <begin tal:content="place/TimeSpan0" ></begin>
+        <end tal:content="place/TimeSpan1"></end>
       </TimeSpan>
-
       <styleUrl tal:content="place/lineColor" >#red_line</styleUrl>
       <LineString>
        <extrude>1</extrude>