# HG changeset patch # User fknauft # Date 1283420502 -7200 # Node ID 6e19a9af00e66da013490cec3a02a6c111b4745e # Parent 695b6612d4c6bbc41287712d14262da74a9698d1 htmlHead() included diff -r 695b6612d4c6 -r 6e19a9af00e6 RestDbInterface.py --- a/RestDbInterface.py Wed Sep 01 17:42:13 2010 +0200 +++ b/RestDbInterface.py Thu Sep 02 11:41:42 2010 +0200 @@ -230,9 +230,69 @@ kmlFileName=self.getKMLname(data=data,table=table) initializeStringForGoogleMaps="""onload=\"initialize(\'http://chinagis.mpiwg-berlin.mpg.de/chinagis/REST/daten/"""+kmlFileName+"""\')\""""#+str(data) initializeStringForGoogleMaps=initializeStringForGoogleMaps.replace("None","0") - googleMap_page=self.htmlHead()+str(self.getGoogleMapString(kml=initializeStringForGoogleMaps)) + googleMap_page=str(self.htmlHead())+str(self.getGoogleMapString(initializeStringForGoogleMaps)) return googleMap_page + + def htmlHead(self): + return """ + +
+ + + + + + + + + + + + + + + + """ + def getKmlUrl(self,schema='chgis',table='mpdl',id=[],doc=None): logging.debug("getKmlUrl") data = self.getDataForGoogleMap(schema,table,id,doc) @@ -330,7 +390,7 @@ def getGoogleMapString(self,kml): logging.debug("getGoogleMapString") - printed= ' '%kml +"""\n