Commit d21ce6cb authored by Ivan Tyagov's avatar Ivan Tyagov

Use current_web_document from REQUEST.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21398 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f2124735
...@@ -46,10 +46,10 @@ ...@@ -46,10 +46,10 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
<tal:block tal:define="\n <tal:block tal:define="\n
default_section_document python: test(here.getPortalType() in (\'Web Site\', \'Web Section\',), \n default_section_document python: request.get(\'current_web_document\', here);\n
here.getDefaultDocumentValue(), here)"> \n isDocument python: default_section_document.isDocument;"> \n
\n \n
<tal:block tal:condition="default_section_document">\n <tal:block tal:condition="isDocument">\n
<tal:block tal:define="related_wiki_successor_document_list python:\n <tal:block tal:define="related_wiki_successor_document_list python:\n
default_section_document.Document_getRelatedDocumentList(\n default_section_document.Document_getRelatedDocumentList(\n
relation_id=\'wiki_successor\');\n relation_id=\'wiki_successor\');\n
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
\n \n
<tal:block tal:condition="not: default_section_document">\n <tal:block tal:condition="not: isDocument">\n
<div class="title" i18n:translate="" i18n:domain="ui">\n <div class="title" i18n:translate="" i18n:domain="ui">\n
No related wiki documents found.\n No related wiki documents found.\n
</div>\n </div>\n
......
...@@ -46,9 +46,9 @@ ...@@ -46,9 +46,9 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
<tal:block tal:define="\n <tal:block tal:define="\n
default_section_document python: test(here.getPortalType() in (\'Web Site\', \'Web Section\',), \n default_section_document python: request.get(\'current_web_document\', here);\n
here.getDefaultDocumentValue(), here)"> \n isDocument python: default_section_document.isDocument;"> \n
<tal:block tal:condition="default_section_document">\n <tal:block tal:condition="isDocument">\n
<tal:block\n <tal:block\n
tal:define="related_successor_document_list python:\n tal:define="related_successor_document_list python:\n
default_section_document.Document_getRelatedDocumentList(\n default_section_document.Document_getRelatedDocumentList(\n
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
\n \n
<tal:block tal:condition="not: default_section_document">\n <tal:block tal:condition="not: isDocument">\n
<div class="title" i18n:translate="" i18n:domain="ui">\n <div class="title" i18n:translate="" i18n:domain="ui">\n
No related documents found.\n No related documents found.\n
</div>\n </div>\n
......
634 635
\ No newline at end of file \ No newline at end of file
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