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
1
Merge Requests
1
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
Boxiang Sun
erp5
Commits
56ff2c06
Commit
56ff2c06
authored
Nov 21, 2019
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Template tool debugging
parent
4ed6c3f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+10
-0
No files found.
product/ERP5/Tool/TemplateTool.py
View file @
56ff2c06
...
@@ -34,6 +34,8 @@ import os
...
@@ -34,6 +34,8 @@ import os
import
shutil
import
shutil
import
sys
import
sys
_print
=
sys
.
stderr
.
write
from
Acquisition
import
Implicit
,
Explicit
from
Acquisition
import
Implicit
,
Explicit
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
AccessControl.SecurityInfo
import
ModuleSecurityInfo
from
AccessControl.SecurityInfo
import
ModuleSecurityInfo
...
@@ -992,6 +994,14 @@ class TemplateTool (BaseTool):
...
@@ -992,6 +994,14 @@ class TemplateTool (BaseTool):
template_item_list = []
template_item_list = []
# First of all, filter Business Templates in repositories.
# First of all, filter Business Templates in repositories.
template_item_dict = {}
template_item_dict = {}
_print("Print the repository list")
_print("=============================")
_print("=============================")
_print("=============================")
_print(str(self.repository_dict.items()))
_print("=============================")
_print("=============================")
_print("=============================")
for repository, property_dict_list in self.repository_dict.items():
for repository, property_dict_list in self.repository_dict.items():
for property_dict in property_dict_list:
for property_dict in property_dict_list:
title = property_dict['
title
']
title = property_dict['
title
']
...
...
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