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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
erp5
Commits
eb433dcc
Commit
eb433dcc
authored
Jul 02, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deferred_style: make sure that the number of report sections is correct in the final report
parent
9ffbfd64
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_computeReportSection.xml
...ns/erp5_deferred_style_core/Base_computeReportSection.xml
+2
-1
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_report.xml
...tem/portal_skins/erp5_deferred_style_core/Base_report.xml
+3
-2
bt5/erp5_deferred_style/bt/revision
bt5/erp5_deferred_style/bt/revision
+1
-1
No files found.
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_computeReportSection.xml
View file @
eb433dcc
...
...
@@ -97,7 +97,7 @@ for idx, report_section in enumerate(report_section_list):\n
).Base_renderReportSection(skin_name=skin_name,\n
localizer_language=localizer_language,\n
report_section=report_section,\n
report_section_idx=idx,\n
report_section_idx=idx,\n
request_other=request_other)\n
\n
activity_context = context\n
...
...
@@ -114,6 +114,7 @@ activity_context.activate(activity=\'SQLQueue\', after_tag=tag, priority=priorit
form_path=form.getPhysicalPath(),\n
user_name=user_name,\n
format=format,\n
report_section_count=len(report_section_list)\n
)\n
</string>
</value>
</item>
...
...
bt5/erp5_deferred_style/SkinTemplateItem/portal_skins/erp5_deferred_style_core/Base_report.xml
View file @
eb433dcc
...
...
@@ -63,8 +63,9 @@ with portal.Localizer.translationContext(localizer_language):\n
portal.portal_skins.changeSkin(skin_name)\n
\n
report_section_list = [r.getResult() for r in ap.getResultList()]\n
assert len(report_section_list) == report_section_count\n
report_section_list.sort(lambda a, b:cmp(a[0], b[0]))\n
\n
\n
def dummyReportMethod():\n
return report_section_list\n
\n
...
...
@@ -95,7 +96,7 @@ portal.ERP5Site_notifyReportComplete(\n
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
active_process_url, skin_name, localizer_language, title, request_other, form_path, user_name, format
</string>
</value>
<value>
<string>
active_process_url, skin_name, localizer_language, title, request_other, form_path, user_name, format
, report_section_count
</string>
</value>
</item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
...
...
bt5/erp5_deferred_style/bt/revision
View file @
eb433dcc
110
\ No newline at end of file
111
\ 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