Commit c0d80ee2 authored by Ivan Tyagov's avatar Ivan Tyagov

Try to pass current web site from outside to pop up renderer.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35617 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 23ba53f5
...@@ -66,7 +66,6 @@ def getReferenceHTML(context):\n ...@@ -66,7 +66,6 @@ def getReferenceHTML(context):\n
html = ""\n html = ""\n
reference = context.getReference() or \'\'\n reference = context.getReference() or \'\'\n
if context.REQUEST.get(\'is_web_mode\', False):\n if context.REQUEST.get(\'is_web_mode\', False):\n
website = context.getWebSiteValue() or context.REQUEST.get(\'current_web_site\')\n
if reference:\n if reference:\n
html += """\n html += """\n
<a href="%s">\n <a href="%s">\n
...@@ -89,7 +88,8 @@ uid = context.getUid()\n ...@@ -89,7 +88,8 @@ uid = context.getUid()\n
url = context.absolute_url()\n url = context.absolute_url()\n
title = context.getTitle() or (hasattr(context, \'getReference\') and context.getReference()) or context.getId()\n title = context.getTitle() or (hasattr(context, \'getReference\') and context.getReference()) or context.getId()\n
portal_type = context.getTranslatedPortalType()\n portal_type = context.getTranslatedPortalType()\n
popup = context.Document_getPopupInfo() or \'\'\n website = context.getWebSiteValue() or context.REQUEST.get(\'current_web_site\')\n
popup = context.Document_getPopupInfo(context.REQUEST.get(\'current_web_site\')) or \'\'\n
selection = None\n selection = None\n
selection_name = context.REQUEST.get("selection_name", None)\n selection_name = context.REQUEST.get("selection_name", None)\n
if selection_name is not None:\n if selection_name is not None:\n
...@@ -186,6 +186,7 @@ return html\n ...@@ -186,6 +186,7 @@ return html\n
<value> <value>
<tuple> <tuple>
<string>getOwnerHTML</string> <string>getOwnerHTML</string>
<string>website</string>
<string>getReferenceHTML</string> <string>getReferenceHTML</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
......
754 755
\ 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