Commit c6e5e390 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Renamed from base_edit.py to Base_edit.py.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1524 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d334a5c4
## Script (Python) "Base_edit"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=form_id, selection_index=0, selection_name='' ##parameters=form_id, selection_index=0, selection_name=''
##title=
##
# Updates attributes of an Zope document # Updates attributes of an Zope document
# which is in a class inheriting from ERP5 Base # which is in a class inheriting from ERP5 Base
# #
...@@ -29,6 +36,7 @@ try: ...@@ -29,6 +36,7 @@ try:
# the object attributes # the object attributes
k = k[3:] k = k[3:]
kw[k] = v kw[k] = v
#return str(kw)
# Update matrix attributes # Update matrix attributes
matrixbox = request.get('matrixbox') matrixbox = request.get('matrixbox')
if matrixbox is not None: if matrixbox is not None:
...@@ -108,9 +116,11 @@ try: ...@@ -108,9 +116,11 @@ try:
o.flushActivity(method_id="recursiveImmediateReindexObject", o.flushActivity(method_id="recursiveImmediateReindexObject",
invoke = 1) # Requires if we want to display indexed subobject data... but long invoke = 1) # Requires if we want to display indexed subobject data... but long
# However it seems it reindexed many many times... XXX # However it seems it reindexed many many times... XXX
# Maybe we should build a list of objects we need # Maybe we should build a list of objects we need
# Update basic attributes # Update basic attributes
context.edit(REQUEST=request,**kw) context.edit(REQUEST=request,**kw)
#except:
# raise
except FormValidationError, validation_errors: except FormValidationError, validation_errors:
# Pack errors into the request # Pack errors into the request
field_errors = form.ErrorFields(validation_errors) field_errors = form.ErrorFields(validation_errors)
......
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