Ignore:
Timestamp:
07/05/10 14:51:56 (23 months ago)
Author:
dart
Message:

LoReality?:
o CSS custo
o Begin i18n
o Fill some new fields in mission
o Fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loreality/loreality/controllers/mission.py

    r2104 r2105  
    2020from formencode.validators import Invalid 
    2121import uuid 
     22from pylons.i18n.translation import _, ungettext 
    2223 
    2324class MissionController(BaseController): 
     
    6061                result = schema.to_python(dict(request.params), c) 
    6162            except Invalid, e: 
    62                 return self.index( 
     63                return self.edit( 
     64                        id=id, 
    6365                    values=values, 
    6466                    errors=variabledecode.variable_encode( 
     
    7476 
    7577                mission.name = result["name"] 
     78                mission.description = result["description"] 
     79                mission.date = result["date"] 
    7680                meta.Session.commit() 
    77                 return self.edit(id=id)  
     81                return self.view(id=id)  
    7882        else: 
    7983            raise Exception('Invalid action %s'%action) 
     
    9599        if not values: values = {} 
    96100        values["name"] = mission.name 
     101        values["description"] = mission.description 
     102        values["date"] = mission.date 
    97103 
    98104        html = render('/derived/page/mission_edit.html') 
Note: See TracChangeset for help on using the changeset viewer.