Commit 7b4623b0 by aa.gusti

chart-item

1 parent 8ef21a37
...@@ -155,7 +155,7 @@ class view_eis_chart(BaseView): ...@@ -155,7 +155,7 @@ class view_eis_chart(BaseView):
if 'simpan' in req.POST: if 'simpan' in req.POST:
controls = req.POST.items() controls = req.POST.items()
try: try:
c = form.validate(controls) controls = form.validate(controls)
except ValidationFailure as e: except ValidationFailure as e:
req.session[SESS_ADD_FAILED] = e.render() req.session[SESS_ADD_FAILED] = e.render()
return HTTPFound(location=req.route_url('eis-chart-add')) return HTTPFound(location=req.route_url('eis-chart-add'))
...@@ -190,7 +190,7 @@ class view_eis_chart(BaseView): ...@@ -190,7 +190,7 @@ class view_eis_chart(BaseView):
if 'simpan' in request.POST: if 'simpan' in request.POST:
controls = request.POST.items() controls = request.POST.items()
try: try:
c = form.validate(controls) controls = form.validate(controls)
except ValidationFailure as e: except ValidationFailure as e:
request.session[SESS_EDIT_FAILED] = e.render() request.session[SESS_EDIT_FAILED] = e.render()
return HTTPFound(location=request.route_url('eis-chart-edit', return HTTPFound(location=request.route_url('eis-chart-edit',
......
...@@ -231,7 +231,7 @@ class view_eis_chart_item(BaseView): ...@@ -231,7 +231,7 @@ class view_eis_chart_item(BaseView):
if 'simpan' in req.POST: if 'simpan' in req.POST:
controls = req.POST.items() controls = req.POST.items()
try: try:
c = form.validate(controls) controls = form.validate(controls)
except ValidationFailure as e: except ValidationFailure as e:
#req.session[SESS_ADD_FAILED] = e.render() #req.session[SESS_ADD_FAILED] = e.render()
#form.set_appstruct(rowd) #form.set_appstruct(rowd)
...@@ -294,7 +294,7 @@ class view_eis_chart_item(BaseView): ...@@ -294,7 +294,7 @@ class view_eis_chart_item(BaseView):
if 'simpan' in request.POST: if 'simpan' in request.POST:
controls = request.POST.items() controls = request.POST.items()
try: try:
c = form.validate(controls) controls = form.validate(controls)
except ValidationFailure as e: except ValidationFailure as e:
return dict(form=form) return dict(form=form)
#request.session[SESS_EDIT_FAILED] = e.render() #request.session[SESS_EDIT_FAILED] = e.render()
......
...@@ -186,7 +186,7 @@ class view_eis_item(BaseView): ...@@ -186,7 +186,7 @@ class view_eis_item(BaseView):
if 'simpan' in req.POST: if 'simpan' in req.POST:
controls = req.POST.items() controls = req.POST.items()
try: try:
c = form.validate(controls) controls = form.validate(controls)
except ValidationFailure as e: except ValidationFailure as e:
#req.session[SESS_ADD_FAILED] = e.render() #req.session[SESS_ADD_FAILED] = e.render()
#form.set_appstruct(rowd) #form.set_appstruct(rowd)
...@@ -242,7 +242,7 @@ class view_eis_item(BaseView): ...@@ -242,7 +242,7 @@ class view_eis_item(BaseView):
if 'simpan' in request.POST: if 'simpan' in request.POST:
controls = request.POST.items() controls = request.POST.items()
try: try:
c = form.validate(controls) controls = form.validate(controls)
except ValidationFailure as e: except ValidationFailure as e:
return dict(form=form) return dict(form=form)
#request.session[SESS_EDIT_FAILED] = e.render() #request.session[SESS_EDIT_FAILED] = e.render()
......
...@@ -158,7 +158,7 @@ class view_eis_slide(BaseView): ...@@ -158,7 +158,7 @@ class view_eis_slide(BaseView):
if 'simpan' in req.POST: if 'simpan' in req.POST:
controls = req.POST.items() controls = req.POST.items()
try: try:
c = form.validate(controls) controls = form.validate(controls)
except ValidationFailure as e: except ValidationFailure as e:
#req.session[SESS_ADD_FAILED] = e.render() #req.session[SESS_ADD_FAILED] = e.render()
#form.set_appstruct(rowd) #form.set_appstruct(rowd)
...@@ -208,7 +208,7 @@ class view_eis_slide(BaseView): ...@@ -208,7 +208,7 @@ class view_eis_slide(BaseView):
if 'simpan' in request.POST: if 'simpan' in request.POST:
controls = request.POST.items() controls = request.POST.items()
try: try:
c = form.validate(controls) controls = form.validate(controls)
except ValidationFailure as e: except ValidationFailure as e:
return dict(form=form) return dict(form=form)
#request.session[SESS_EDIT_FAILED] = e.render() #request.session[SESS_EDIT_FAILED] = e.render()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!