Commit d0b78a7d authored by Romain Courteaud's avatar Romain Courteaud

Add parameter omit_individual_variation to some methods.

(this parameter can be added in futur on others methods).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3479 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5af48b01
...@@ -186,7 +186,8 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -186,7 +186,8 @@ class Resource(XMLMatrix, CoreResource, Variated):
""" """
result = Variated.getVariationCategoryItemList(self, result = Variated.getVariationCategoryItemList(self,
base_category_list=base_category_list, base_category_list=base_category_list,
display_base_category=display_base_category, **kw) display_base_category=display_base_category,
base=base, **kw)
if not omit_individual_variation: if not omit_individual_variation:
other_variations = self.searchFolder( other_variations = self.searchFolder(
portal_type=self.getPortalVariationTypeList()) portal_type=self.getPortalVariationTypeList())
...@@ -211,9 +212,9 @@ class Resource(XMLMatrix, CoreResource, Variated): ...@@ -211,9 +212,9 @@ class Resource(XMLMatrix, CoreResource, Variated):
return result return result
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getVariationCategoryItemList') 'getVariationCategoryList')
def getVariationCategoryList(self, base_category_list=(), def getVariationCategoryList(self, base_category_list=(),
omit_individual_variation=1,**kw): omit_individual_variation=1, **kw):
""" """
Returns variations of the resource. Returns variations of the resource.
If omit_individual_variation==1, does not return individual If omit_individual_variation==1, does not return individual
......
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