Commit 325be9aa authored by Georgios Dagkakis's avatar Georgios Dagkakis

WebSection: Override absolute_url of default Document when it is added asContext

so we do not have an absolute_url that uselessly adds document reference here
parent b418885f
...@@ -249,6 +249,7 @@ class WebSection(Domain, DocumentExtensibleTraversableMixin): ...@@ -249,6 +249,7 @@ class WebSection(Domain, DocumentExtensibleTraversableMixin):
id=document.getReference(), id=document.getReference(),
original_container=document.getParentValue(), original_container=document.getParentValue(),
original_id=document.getId(), original_id=document.getId(),
absolute_url=lambda *args, **kw: self.absolute_url(*args, **kw),
editable_absolute_url=document.absolute_url())).__of__(self) editable_absolute_url=document.absolute_url())).__of__(self)
else: else:
isAuthorizationForced = getattr(self, 'isAuthorizationForced', None) isAuthorizationForced = getattr(self, 'isAuthorizationForced', None)
......
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