Commit 076ea409 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* add getDomainTreeMode() and getReportTreeMode().

* remove needless imports.
* some cosmetic changes.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18208 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 24ccf35c
......@@ -27,13 +27,11 @@
##############################################################################
from Globals import InitializeClass, Persistent, Acquisition
from Acquisition import aq_base, aq_inner, aq_parent, aq_self
from OFS.SimpleItem import SimpleItem
from Acquisition import aq_base
from OFS.Traversable import Traversable
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions as ERP5Permissions
from Products.PythonScripts.Utility import allow_class
import string
# Put a try in front XXX
from Products.CMFCategory.Category import Category
......@@ -347,6 +345,13 @@ class Selection(Acquisition.Implicit, Traversable, Persistent):
def getInvertModeUidList(self):
return self.uids
security.declarePublic('getDomainTreeMode')
def getDomainTreeMode(self):
return getattr(self, 'domain_tree_mode', 0)
security.declarePublic('getReportTreeMode')
def getReportTreeMode(self):
return getattr(self, 'report_tree_mode', 0)
InitializeClass(Selection)
allow_class(Selection)
......
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