Commit be8f6ab4 authored by Jean-Paul Smets's avatar Jean-Paul Smets

First complete implementation of parent virtual base category in report mode...

First complete implementation of parent virtual base category in report mode of Listbox. Various display optimisations


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2437 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f17f875e
This diff is collapsed.
...@@ -273,9 +273,12 @@ class Selection(Acquisition.Implicit, Traversable, Persistent): ...@@ -273,9 +273,12 @@ class Selection(Acquisition.Implicit, Traversable, Persistent):
return self.checked_uids return self.checked_uids
security.declarePublic('getDomainPath') security.declarePublic('getDomainPath')
def getDomainPath(self): def getDomainPath(self, default=None):
if self.domain_path is None: if self.domain_path is None:
self.domain_path = self.getDomainList()[0] if default is None:
self.domain_path = self.getDomainList()[0]
else:
self.domain_path = default
return self.domain_path return self.domain_path
security.declarePublic('getDomainList') security.declarePublic('getDomainList')
...@@ -285,9 +288,12 @@ class Selection(Acquisition.Implicit, Traversable, Persistent): ...@@ -285,9 +288,12 @@ class Selection(Acquisition.Implicit, Traversable, Persistent):
return self.domain_list return self.domain_list
security.declarePublic('getReportPath') security.declarePublic('getReportPath')
def getReportPath(self): def getReportPath(self, default=None):
if self.report_path is None: if self.report_path is None:
self.report_path = ('portal_categories') if default is None:
self.report_path = self.getReportList()[0]
else:
self.report_path = default
return self.report_path return self.report_path
security.declarePublic('getReportList') security.declarePublic('getReportList')
......
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