Commit 0cef975e authored by Jérome Perrin's avatar Jérome Perrin

variable not initialized (from previous commit)



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13017 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e002a807
...@@ -71,12 +71,13 @@ def createPreferenceToolAccessorList(portal) : ...@@ -71,12 +71,13 @@ def createPreferenceToolAccessorList(portal) :
attr_list = [] attr_list = []
typestool = getToolByName(portal, 'portal_types') typestool = getToolByName(portal, 'portal_types')
pref_portal_type = typestool.getTypeInfo('Preference') pref_portal_type = typestool.getTypeInfo('Preference')
# 'Dynamic' property sheets added through ZMI
zmi_property_sheet_list = []
if pref_portal_type is None: if pref_portal_type is None:
LOG('ERP5Form.PreferenceTool', PROBLEM, LOG('ERP5Form.PreferenceTool', PROBLEM,
'Preference type information is not installed.') 'Preference type information is not installed.')
else: else:
# 'Dynamic' property sheets added through ZMI
zmi_property_sheet_list = []
for property_sheet in pref_portal_type.property_sheet_list : for property_sheet in pref_portal_type.property_sheet_list :
try: try:
zmi_property_sheet_list.append( zmi_property_sheet_list.append(
...@@ -84,6 +85,7 @@ def createPreferenceToolAccessorList(portal) : ...@@ -84,6 +85,7 @@ def createPreferenceToolAccessorList(portal) :
except ImportError, e : except ImportError, e :
LOG('ERP5Form.PreferenceTool', PROBLEM, LOG('ERP5Form.PreferenceTool', PROBLEM,
'unable to import Property Sheet %s' % property_sheet, e) 'unable to import Property Sheet %s' % property_sheet, e)
# 'Static' property sheets defined on the class # 'Static' property sheets defined on the class
# The Preference class should be imported from the common location # The Preference class should be imported from the common location
# in ERP5Type since it could be overloaded in another product # in ERP5Type since it could be overloaded in another product
......
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