''' ''' from lxml import etree # using lxml for XML processing from utils import strs # string constants from utils import utils # some XML utilities class Level(object): ''' ''' def __init__(self, path): ''' Constructor ''' #open up the mlvl file and read in its basic properties root = utils.getXMLRoot(path) self.name = root.xpath(strs.XP_LevelName)[0] self.description = root.xpath(strs.XP_LevelName)[0] self.path = path pass def getName(self): '''Returns the name of this level''' return self.name def getDescription(self): '''Returns the description of this level''' return self.description