Ignore:
Timestamp:
21/04/09 15:12:22 (11 years ago)
Author:
cbyrom
Message:

Adjust the Atom and MolesEntity? data models to store their data
internally, 'as is' - and to escape/unescape XML unfriendly characters
on data export/import. Adjust templates and inputs processing to
cope with this change - which allows the input of most characters
without problem (NB, old method caused unfriendly errors when illegal
characters were detected).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/controllers/atom_editor/atomeditorcontroller.py

    r5199 r5212  
    55''' 
    66import logging, cgi 
     7from xml.sax.saxutils import unescape 
    78from ndg.common.src.models.ndgObject import ndgObject 
    89from milk_server.lib.base import * 
     
    9293        for key, val in inputs.items(): 
    9394            if not isinstance(val, cgi.FieldStorage): 
    94                 tidyInputs[key] = val 
     95                tidyInputs[key] = unescape(val) 
    9596 
    9697        logging.debug("Pickleable data extracted") 
Note: See TracChangeset for help on using the changeset viewer.