Commit cbfd48c8 authored by Jérome Perrin's avatar Jérome Perrin

implement ZMI Find support for ERP5 Type Informations



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18777 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 57707b02
......@@ -736,6 +736,21 @@ class ERP5TypeInformation( FactoryTypeInformation,
return self.manage_editActionsForm(REQUEST,
manage_tabs_message='Actions reordered.')
def PrincipiaSearchSource(self):
# Support for "Find" tab in ZMI
search_source_list =[ self.getId(),
self.factory, self.permission, self.init_script,
' '.join(self.property_sheet_list),
' '.join(self.base_category_list) ]
for ai in self._actions:
search_source_list.extend([ai.title, ai.id, ai.getActionExpression(),
ai.getCondition() ])
for ri in self._roles:
search_source_list.extend([ri.id, ri.title, ri.description,
ri.getCondition(), ri.base_category_script ])
return ' '.join(search_source_list)
InitializeClass( ERP5TypeInformation )
def manage_addERP5TIForm(self, REQUEST):
......
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