Changeset 3089


Ignore:
Timestamp:
30/11/07 15:09:59 (12 years ago)
Author:
domlowe
Message:

fixed double escaping bug

Location:
TI02-CSML/trunk/csml
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/csmllibs/csmlfeaturetypes.py

    r3065 r3089  
    4949        try: 
    5050            descName=DI.getVariableAttribute('long_name') 
    51             descName  
    5251        except AttributeError: 
    53             descName = "missing name" 
    54         descName=descName.replace('&','&') #remove ampersands TODO- extend this 
     52            descName = "missing description" 
    5553        return descName 
    5654     
     
    246244        feature.name=csml.parser.csString(varName) 
    247245        desc = self._getDescriptiveName(self.DI) 
     246 
    248247        feature.description=csml.parser.csString(desc) 
    249          
     248 
    250249    def __getGMLRangeset(self,varName): 
    251250        #GML RANGESET 
  • TI02-CSML/trunk/csml/parser.py

    r2837 r3089  
    190190            for item in self.__dict__: 
    191191                if item in self.ATTRIBUTES:                     
    192                     csmlfrag.set(item, self.__dict__[item]) 
     192                    csmlfrag.set(item, cgi.escape(str((self.__dict__[item])))) 
    193193    # self.CHILDREN (recursive - calls the toXML method of children 
    194194        for child in self.ELEMORDER: 
Note: See TracChangeset for help on using the changeset viewer.