Exemplo n.º 1
0
 def modifyElement(self):
     """Modify this element"""
     ele = self.doc.createElement('modify')
     if self.name == 'node':
         ele.appendChild(node2xml(self))
     elif self.name == 'way':
         ele.appendChild(way2xml(self))
     elif self.name == 'relation':
         ele.appendChild(relation2xml(self))
     self.base.appendChild(ele)
Exemplo n.º 2
0
 def modifyElement(self):
     """Modify this element"""
     ele = self.doc.createElement('modify')
     if self.name == 'node':
         ele.appendChild(node2xml(self))
     elif self.name == 'way':
         ele.appendChild(way2xml(self))
     elif self.name == 'relation':
         ele.appendChild(relation2xml(self))
     self.base.appendChild(ele)
Exemplo n.º 3
0
 def preDeleteElement(self):
     """Returns the string to delete the element.  Please use with
     caution!"""
     ele = self.doc.createElement('delete')
     if self.name == 'node':
         ele.appendChild(node2xml(self))
     elif self.name == 'way':
         ele.appendChild(way2xml(self))
     elif self.name == 'relation':
         ele.appendChild(relation2xml(self))
     return ele
Exemplo n.º 4
0
 def preDeleteElement(self):
     """Returns the string to delete the element.  Please use with
     caution!"""
     ele = self.doc.createElement('delete')
     if self.name == 'node':
         ele.appendChild(node2xml(self))
     elif self.name == 'way':
         ele.appendChild(way2xml(self))
     elif self.name == 'relation':
         ele.appendChild(relation2xml(self))
     return ele