예제 #1
0
 def POST(self):
     form = forms.carrier()
     if not form.validates():
         return hello.render.carriers(model.get_carriers(), form)
     model.new_carrier(form)
     return hello.render.carriers(model.get_carriers(), form)
예제 #2
0
 def GET(self):
     return hello.render.carriers(model.get_carriers(), forms.carrier())