Changeset 5482


Ignore:
Timestamp:
13/07/09 17:18:45 (10 years ago)
Author:
aharwood
Message:

Moved location of redirect following creation of a new atom as otherwise you get an error message displayed (system error 302)

File:
1 edited

Legend:

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

    r5481 r5482  
    669669        ''' 
    670670        self._setup() 
     671         
     672        url = None 
     673         
    671674        if saveData: 
    672675            logging.info("Validating input") 
     
    696699 
    697700            # NB, the redirect throws an exception, so be careful not to catch it 
    698             h.redirect_to(url)                 
     701            if url: 
     702               h.redirect_to(url)                 
    699703             
    700704        logging.info("Setting up atom create template") 
Note: See TracChangeset for help on using the changeset viewer.