def __str__(self):
     if self._kml['maxlines'] is not None:
         return u'<linkSnippet maxLines="{0}">{1}</linkSnippet>'.format(
             self._kml['maxlines'],
             Kmlable._chrconvert(self._kml['content']))
     else:
         return u'<linkSnippet>{0}</linkSnippet>'.format(
             Kmlable._chrconvert(self._kml['content']))
Example #2
0
 def __str__(self):
     buf = [u'<Data name="{0}">'.format(Kmlable._chrconvert(self.name))]
     if self._kml['value'] is not None:
         buf.append("<value>{0}</value>".format(self._kml['value']))
     if self._kml['displayName'] is not None:
         buf.append(u"<displayName>{0}</displayName>".format(Kmlable._chrconvert(self._kml['displayName'])))
     buf.append('</Data>')
     return "".join(buf)
Example #3
0
 def __str__(self):
     buf = [u'<Data name="{0}">'.format(Kmlable._chrconvert(self.name))]
     if self._kml['value'] is not None:
         buf.append("<value>{0}</value>".format(self._kml['value']))
     if self._kml['displayName'] is not None:
         buf.append(u"<displayName>{0}</displayName>".format(Kmlable._chrconvert(self._kml['displayName'])))
     buf.append('</Data>')
     return "".join(buf)
Example #4
0
 def __str__(self):
     buf = [
         u'<SimpleField type="{0}" name="{1}">'.format(
             self.type, Kmlable._chrconvert(self.name))
     ]
     if self.displayname is not None:
         buf.append(u'<displayName>{0}</displayName>'.format(
             Kmlable._chrconvert(self.displayname)))
     buf.append('</SimpleField>')
     return "".join(buf)
Example #5
0
 def __str__(self):
     buf = [
         u'<gx:SimpleArrayData name="{0}">'.format(
             Kmlable._chrconvert(self.name))
     ]
     for value in self.values:
         buf.append("<gx:value>{0}</gx:value>".format(value))
     buf.append("</gx:SimpleArrayData>")
     return "".join(buf)
Example #6
0
 def __str__(self):
     buf = []
     if self.name is not None:
         buf.append(u'<Schema name="{0}" id="{1}">'.format(Kmlable._chrconvert(self.name), self._id))
     else:
         buf.append('<Schema id="{0}">'.format(self._id))
     for field in self.simplefields:
         buf.append(field.__str__())
     for field in self.gxsimplearrayfields:
         buf.append(field.__str__())
     buf.append('</Schema>')
     return "".join(buf)
Example #7
0
 def __str__(self):
     buf = []
     if self.name is not None:
         buf.append(u'<Schema name="{0}" id="{1}">'.format(Kmlable._chrconvert(self.name), self._id))
     else:
         buf.append('<Schema id="{0}">'.format(self._id))
     for field in self.simplefields:
         buf.append(field.__str__())
     for field in self.gxsimplearrayfields:
         buf.append(field.__str__())
     buf.append('</Schema>')
     return "".join(buf)
Example #8
0
 def __str__(self):
     buf = [u'<SimpleField type="{0}" name="{1}">'.format(self.type, Kmlable._chrconvert(self.name))]
     if self.displayname is not None:
         buf.append(u'<displayName>{0}</displayName>'.format(Kmlable._chrconvert(self.displayname)))
     buf.append('</SimpleField>')
     return "".join(buf)
Example #9
0
 def __str__(self):
     buf = [u'<gx:SimpleArrayData name="{0}">'.format(Kmlable._chrconvert(self.name))]
     for value in self.values:
         buf.append("<gx:value>{0}</gx:value>".format(value))
     buf.append("</gx:SimpleArrayData>")
     return "".join(buf)
Example #10
0
 def __str__(self):
     return u'<SimpleData name="{0}">{1}</SimpleData>'.format(Kmlable._chrconvert(self.name), self.value)
Example #11
0
 def __str__(self):
     if self._kml['maxlines'] is not None:
         return u'<linkSnippet maxLines="{0}">{1}</linkSnippet>'.format(self._kml['maxlines'],Kmlable._chrconvert(self._kml['content']))
     else:
         return u'<linkSnippet>{0}</linkSnippet>'.format(Kmlable._chrconvert(self._kml['content']))
Example #12
0
 def __str__(self):
     return u'<SimpleData name="{0}">{1}</SimpleData>'.format(Kmlable._chrconvert(self.name), self.value)