Commit 6e6a719b authored by Yoshinori Okuji's avatar Yoshinori Okuji

Renamed from organisation_edit.py to Organisation_edit.py.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1628 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 52161e08
## Script (Python) "organisation_edit"
## Script (Python) "Organisation_edit"
##bind container=container
##bind context=context
##bind namespace=
......@@ -13,18 +13,18 @@ request=context.REQUEST
try:
# Validate the form
context.organisation_view.validate_all_to_request(request)
context.Organisation_view.validate_all_to_request(request)
context.edit(id=request.my_id
, title=request.my_title
, corporate_name = request.my_corporate_name
, description = request.my_description)
except FormValidationError, validation_errors:
# Pack errors into the request
field_errors = context.organisation_view.ErrorFields(validation_errors)
field_errors = context.Organisation_view.ErrorFields(validation_errors)
request.set('field_errors', field_errors)
return context.organisation_view(request)
return context.Organisation_view(request)
else:
redirect_url = '%s/organisation_view?%s' % ( context.absolute_url()
redirect_url = '%s/Organisation_view?%s' % ( context.absolute_url()
, 'portal_status_message=Data+Updated.'
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment