Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
erp5
Commits
e422a1bf
Commit
e422a1bf
authored
Nov 25, 2011
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reuse as long as possible calculated doc's web section list (as this is an expensive operation)
parent
6a860071
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Document_getPopupInfo.xml
...plateItem/portal_skins/erp5_web/Document_getPopupInfo.xml
+7
-6
bt5/erp5_web/bt/revision
bt5/erp5_web/bt/revision
+1
-1
No files found.
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Document_getPopupInfo.xml
View file @
e422a1bf
...
...
@@ -114,11 +114,12 @@ doc_info[\'thumbnail_url\'] = context.Base_getThumbnailAbsoluteUrl()\n
if website is None:\n
website = context.getWebSiteValue() or context.REQUEST.get(\'current_web_site\')\n
\n
sections = []\n
for websection in website.getWebSectionValueList(context):\n
sections.append({\'title\': websection.getCompactTranslatedTitle(),\n
\'url\': websection.absolute_url()})\n
doc_info[\'sections\'] = sections\n
doc_info[\'sections\'] = []\n
if document_web_section_list is None:\n
document_web_section_list = website.getWebSectionValueList(context)\n
for websection in document_web_section_list:\n
doc_info[\'sections\'].append({\'title\': websection.getCompactTranslatedTitle(),\n
\'url\': websection.absolute_url()})\n
doc_info[\'url\'] = context.absolute_url()\n
\n
return context.Document_viewPopupTemplate(**doc_info)\n
...
...
@@ -126,7 +127,7 @@ return context.Document_viewPopupTemplate(**doc_info)\n
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
website=None
</string>
</value>
<value>
<string>
website=None
, document_web_section_list=None
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_web/bt/revision
View file @
e422a1bf
1070
\ No newline at end of file
1071
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment