Commit 46a384f9 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Call reindexObject in setCategoryList.

Use _setCategoryList of CategoryTool in _setCategoryList.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@690 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d6ecc390
...@@ -891,10 +891,11 @@ class Base( CopyContainer, PortalContent, Base18, ActiveObject, ERP5PropertyMana ...@@ -891,10 +891,11 @@ class Base( CopyContainer, PortalContent, Base18, ActiveObject, ERP5PropertyMana
security.declareProtected( Permissions.ModifyPortalContent, 'setCategoryList' ) security.declareProtected( Permissions.ModifyPortalContent, 'setCategoryList' )
def setCategoryList(self, path_list): def setCategoryList(self, path_list):
self._setCategoryList(path_list) self._setCategoryList(path_list)
self.reindexObject()
security.declareProtected( Permissions.ModifyPortalContent, '_setCategoryList' ) security.declareProtected( Permissions.ModifyPortalContent, '_setCategoryList' )
def _setCategoryList(self, path_list): def _setCategoryList(self, path_list):
self.categories = tuple(path_list) self.portal_categories._setCategoryList(self, path_list)
security.declareProtected( Permissions.View, 'getBaseCategoryList' ) security.declareProtected( Permissions.View, 'getBaseCategoryList' )
def getBaseCategoryList(self): def getBaseCategoryList(self):
......
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