From 5063e57c8ca023de9f9d1de34367af252b5d3c77 Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Tue, 8 Feb 2011 00:26:27 +0000
Subject: [PATCH] getPortalConstraintTypeList on portal

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43146 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/ERP5Site.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/product/ERP5/ERP5Site.py b/product/ERP5/ERP5Site.py
index adb9b8e6d7..4c7181a7ed 100644
--- a/product/ERP5/ERP5Site.py
+++ b/product/ERP5/ERP5Site.py
@@ -767,6 +767,14 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
     return self._getPortalGroupedTypeList('supply') or \
            self._getPortalConfiguration('portal_supply_type_list')
 
+  security.declareProtected(Permissions.AccessContentsInformation,
+                              'getPortalConstraintTypeList')
+  def getPortalConstraintTypeList(self):
+    """
+      Return rule types.
+    """
+    return self._getPortalGroupedTypeList('constraint')
+
   security.declareProtected(Permissions.AccessContentsInformation,
                               'getPortalRuleTypeList')
   def getPortalRuleTypeList(self):
-- 
2.30.9