Ignore:
Timestamp:
12/02/09 17:32:22 (11 years ago)
Author:
cbyrom
Message:

Adjust granulite to ensure that granule atoms are validated before
they are created - and add code to properly deal with validation errors.

File:
1 edited

Legend:

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

    r4959 r4964  
    104104        in templates 
    105105        @param e: Exception to add 
     106        @return errors: dict of errors 
    106107        ''' 
    107108        if not c.errors: 
     
    122123            # and is of no real interest - and will just confuse viewers 
    123124            c.errors['Unexpected error'] = e.faultString.split(':')[-1]  
     125 
    124126        if hasattr(e, 'unpack_errors'): 
    125127            c.errors.update(e.unpack_errors()) 
     
    135137                    newErrors.append(escapeSpecialCharacters(err)) 
    136138            c.errors[key] = newErrors 
     139         
     140        return c.errors 
    137141 
    138142 
Note: See TracChangeset for help on using the changeset viewer.