Commit 4bf73404 authored by Thibaut Deheunynck's avatar Thibaut Deheunynck

add PropertySheet for Document Domain and implement the method asDomainItemDict

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23569 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 68ec050f
......@@ -85,7 +85,11 @@ class Domain(Predicate, MetaNode, MetaResource):
__implements__ = ( Interface.Predicate, )
# Declarative properties
property_sheets = ( PropertySheet.Domain, )
property_sheets = ( PropertySheet.Base
, PropertySheet.Predicate
, PropertySheet.Domain
, PropertySheet.SortIndex
)
security.declareProtected( Permissions.AccessContentsInformation, 'getRelativeUrl' )
def getRelativeUrl(self):
......
......@@ -511,7 +511,11 @@ class DomainSelection(Acquisition.Implicit, Traversable, Persistent):
security.declarePublic('asDomainItemDict')
def asDomainItemDict(self, domain_id=None, exclude_domain_id=None):
pass
domain_item_dict = {}
portal = self.getPortalObject()
for k, d in self.domain_dict.iteritems():
domain_item_dict[k] = self._getDomainObject(portal,d)
return domain_item_dict
security.declarePublic('updateDomain')
def updateDomain(self, domain):
......
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