Commit b9924f00 authored by Romain Courteaud's avatar Romain Courteaud

websection wip

parent dd15e6a3
...@@ -451,7 +451,8 @@ class WebSection(Domain, DocumentExtensibleTraversableMixin): ...@@ -451,7 +451,8 @@ class WebSection(Domain, DocumentExtensibleTraversableMixin):
def _edit(self, **kw): def _edit(self, **kw):
# XXX it is unclear if we should keep this behavior in other potential subclasses. # XXX it is unclear if we should keep this behavior in other potential subclasses.
# Probably yes. # Probably yes.
if self.getPortalType() in ('Web Section', 'Web Site'): if self.getPortalType() in ('Static Web Section', 'Static Web Site',
'Web Section', 'Web Site'):
if getattr(self, '__before_traverse__', None) is None: if getattr(self, '__before_traverse__', None) is None:
# migrate beforeTraverse hook if missing # migrate beforeTraverse hook if missing
handle = self.meta_type + '/' + self.getId() handle = self.meta_type + '/' + self.getId()
......
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