From d0f0a69703bfd3ae74da690048c7b647bc0b1c02 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Thu, 26 May 2005 13:05:07 +0000 Subject: [PATCH] added portal_base_category_list and portal_mapped_value_property_list git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3092 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/ERP5Defaults.py | 3 +++ product/ERP5/ERP5Site.py | 14 ++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/product/ERP5/ERP5Defaults.py b/product/ERP5/ERP5Defaults.py index 448f4e50b0..db915dd0b4 100755 --- a/product/ERP5/ERP5Defaults.py +++ b/product/ERP5/ERP5Defaults.py @@ -153,3 +153,6 @@ portal_future_inventory_state_list = ('planned', 'ordered',) portal_column_base_category_list = ('taille', ) portal_line_base_category_list = ('coloris', 'couleur', ) portal_tab_base_category_list = ('morphologie', ) + +portal_criterion_base_category_list = ('source','destination','resource') +portal_mapped_value_property_list = ('start_date','stop_date') diff --git a/product/ERP5/ERP5Site.py b/product/ERP5/ERP5Site.py index e671e50a65..912801d0c7 100755 --- a/product/ERP5/ERP5Site.py +++ b/product/ERP5/ERP5Site.py @@ -375,6 +375,20 @@ class ERP5Site ( CMFSite, FolderMixIn ): """ return self._getPortalConfiguration('portal_container_type_list') + security.declareProtected(Permissions.AccessContentsInformation, 'getPortalCriterionBaseCategoryList') + def getPortalCriterionBaseCategoryList(self): + """ + Return container types. + """ + return self._getPortalConfiguration('portal_criterion_base_category_list') + + security.declareProtected(Permissions.AccessContentsInformation, 'getPortalMappedValuePropertyList') + def getPortalMappedValuePropertyList(self): + """ + Return container types. + """ + return self._getPortalConfiguration('portal_mapped_value_property_list') + security.declareProtected(Permissions.AccessContentsInformation, 'getPortalContainerLineTypeList') def getPortalContainerLineTypeList(self): """ -- 2.30.9