Commit 9c146950 authored by Sebastien Robin's avatar Sebastien Robin

indent of 4 for ERP5CPS


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@577 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1bdface3
......@@ -37,17 +37,6 @@ class PatchedProxyBase(ProxyBase):
security = ClassSecurityInfo()
# Object attributes update method
# security.declarePrivate( '_edit' )
# def _edit(self, REQUEST=None, force_update = 0, **kw):
# """
# call also the proxytool
# """
# Base._edit(self, REQUEST=REQUEST,force_update=force_update, **kw)
# px_tool= getToolByName(self,'portal_proxies')
# utool = getToolByName(self, 'portal_url')
# rpath = utool.getRelativeUrl(self)
# px_tool._modifyProxy(self,rpath)
def manage_afterEdit(self):
"""
......
......@@ -51,12 +51,7 @@ class PatchedCPSDocument(CPSDocument):
field_list = data_model._fields.items()
field_list.sort()
for (prop_id,field) in field_list:
#for field in schema.objectValues():
#LOG('testjp',0,'field: %s' % str(field))
f_type = None
#for p in field._properties:
# if p['id'] == 'default':
# f_type = p['type']
if isinstance(field,CPSImageField):
f_type = 'object'
elif isinstance(field,CPSStringField):
......@@ -127,6 +122,8 @@ class PatchedCPSDocument(CPSDocument):
return method(value)
else:
setattr(self,key,value)
# This solution below doesn't works well, it is better
# to just set the attribute.
#data_model = self.getTypeInfo().getDataModel(self)
#type_info = self.getTypeInfo()
#kw = {key:value}
......
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