dna: Add LandmarkBuilding loading.

This commit is contained in:
Sam Edwards 2014-04-06 04:01:45 -06:00
parent caf2ba6106
commit d7c25ea163
2 changed files with 6 additions and 2 deletions

View file

@ -13,6 +13,9 @@ class DNALandmarkBuilding(DNAGroup):
self.type = type
def _makeNode(self, storage, parent):
pass # TODO
node = storage.findNode(self.code)
if node is None:
raise DNAError('DNALandmarkBuilding uses unknown code %s' % self.code)
return node.copyTo(parent)
registerElement(DNALandmarkBuilding)

View file

@ -1,6 +1,7 @@
import xml.sax
class DNAParseError(Exception): pass
class DNAError(Exception): pass
class DNAParseError(DNAError): pass
elementRegistry = {}
def registerElement(element):