Changeset 4514


Ignore:
Timestamp:
28/11/08 12:22:42 (11 years ago)
Author:
cbyrom
Message:

Fix problem with retaining empty category data + improve output error logging + improve robustness of exist file retrieval.

File:
1 edited

Legend:

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

    r4504 r4514  
    7676            newErrors = [] 
    7777            for error in errors: 
    78                 newErrors.append(escapeSpecialCharacters(error)) 
     78                for err in error.split('<br/>'): 
     79                    newErrors.append(escapeSpecialCharacters(err)) 
    7980            c.errors[key] = newErrors 
    8081 
     
    255256            logging.info("- input valid") 
    256257        except ValidationError, e: 
    257             c.errors = e.unpack_errors() 
     258            self.__unpackErrors(e) 
    258259            logging.info("- input invalid") 
    259260            return self.edit(uri) 
     
    606607        eXistClient = edc.eXistDBClient(eXistDBHostname = existHost, \ 
    607608                                       configFile = configFile) 
    608          
    609609        # add the client to the global variables for re-use 
    610610        g.eXistDBCons[providerID] = eXistClient 
Note: See TracChangeset for help on using the changeset viewer.