From 90e36bef06ad6a41d4669a850ecf1ca42c4ee17a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 21 Apr 2009 13:01:29 +0000
Subject: [PATCH] add acquired membership method in the interface

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26555 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../Interface/ICategoryAccessProvider.py      | 20 +++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Type/Interface/ICategoryAccessProvider.py b/product/ERP5Type/Interface/ICategoryAccessProvider.py
index b976adcdcf..cf36144de3 100644
--- a/product/ERP5Type/Interface/ICategoryAccessProvider.py
+++ b/product/ERP5Type/Interface/ICategoryAccessProvider.py
@@ -33,9 +33,12 @@ class ICategoryAccessProvider(Interface):
     This interface defines the methods which must be implemented
     by a class in order to support Category accessors.
   """
-  def _getCategoryMembershipList(category, spec=(), filter=None, portal_type=(), base=0, 
-                                 keep_default=1, checked_permission=None, **kw):
+
+  def _getAcquiredCategoryMembershipList(category, spec=(), filter=None,
+      portal_type=(), base=0, keep_default=1, checked_permission=None, **kw):
     """
+    Returns the membership for this category, with acquired membership.
+
       spec -- 
 
       filter --
@@ -49,7 +52,20 @@ class ICategoryAccessProvider(Interface):
       kw -- 
     """
 
+  def _getCategoryMembershipList(category, spec=(), filter=None, portal_type=(), base=0,
+                                 keep_default=1, checked_permission=None, **kw):
+    """
+    Returns the membership for this category, without acquired membership.
+    """
+
   def _getDefaultCategoryMembership(category, spec=(), filter=None, portal_type=(), base=0,
                                     checked_permission=None, **kw):
     """
+    Returns the default membership for this category, without acquisition.
+    """
+
+  def _getDefaultAcquiredCategoryMembership(category, spec=(), filter=None, portal_type=(), base=0,
+                                    checked_permission=None, **kw):
+    """
+    Returns the default membership for this category, with acquisition.
     """
-- 
2.30.9