Commit 38d80fc9 authored by Jérome Perrin's avatar Jérome Perrin

single accessors supports a "default" argument


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26557 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 025f7a8a
...@@ -56,16 +56,23 @@ class ICategoryAccessProvider(Interface): ...@@ -56,16 +56,23 @@ class ICategoryAccessProvider(Interface):
keep_default=1, checked_permission=None, **kw): keep_default=1, checked_permission=None, **kw):
""" """
Returns the membership for this category, without acquired membership. Returns the membership for this category, without acquired membership.
""" """
def _getDefaultCategoryMembership(category, spec=(), filter=None, portal_type=(), base=0, def _getDefaultCategoryMembership(category, spec=(), filter=None, portal_type=(), base=0,
checked_permission=None, **kw): default=None, checked_permission=None, **kw):
""" """
Returns the default membership for this category, without acquisition. Returns the default membership for this category, without acquisition.
default -- an optional default value, if no membership is found
""" """
def _getDefaultAcquiredCategoryMembership(category, spec=(), filter=None, portal_type=(), base=0, def _getDefaultAcquiredCategoryMembership(category, spec=(), filter=None, portal_type=(), base=0,
checked_permission=None, **kw): default=None, checked_permission=None, **kw):
""" """
Returns the default membership for this category, with acquisition. Returns the default membership for this category, with acquisition.
default -- an optional default value, if no membership is found
""" """
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