Ignore:
Timestamp:
13/07/09 17:05:44 (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

    r5261 r5481  
    688688                atom = self.saveAtomToExist(Atom(**dict(self.inputs))) 
    689689                url = h.url_for('edit', uri = atom.ndgURI, saveData=None) 
    690                  
    691                 # NB, the redirect throws an exception, so be careful not to catch it 
    692                 h.redirect_to(url) 
     690 
    693691            except Invalid, e: 
    694692                c.errors = e.unpack_errors() 
     
    696694                c.xml = 'System Error: %s' %str(e) 
    697695                return render("genshi", 'error') 
    698                  
     696 
     697            # NB, the redirect throws an exception, so be careful not to catch it 
     698            h.redirect_to(url)                 
    699699             
    700700        logging.info("Setting up atom create template") 
Note: See TracChangeset for help on using the changeset viewer.