Changeset 5136 for ndgCommon/trunk


Ignore:
Timestamp:
23/03/09 17:36:47 (10 years ago)
Author:
cbyrom
Message:

Make handling of parameters common - so granulite + form input both
use same route + add extra code to deal with input of double quotes
here (cannot have this in the data since the data is an XML attribute)
+ more tidying of editor/browse links.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ndgCommon/trunk/ndg/common/src/models/Atom.py

    r5106 r5136  
    202202        (self.label, self.scheme, self.term) = utilities.getTripleData(linkString, \ 
    203203            doEscape=escapeSpecialCharacters) 
     204 
     205        # also replace any double quotes with single apostrophes - since this data 
     206        # is stored as an attribute - i.e. already surrounded by double quotes 
     207        self.label = self.label.replace("\"", "'") 
     208        self.scheme = self.scheme.replace("\"", "'") 
     209        self.term = self.term.replace("\"", "'") 
     210         
    204211         
    205212    def fromETElement(self, linkTag): 
Note: See TracChangeset for help on using the changeset viewer.