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
Noah Brackenbury
erp5
Commits
ccd851c0
Commit
ccd851c0
authored
Jun 21, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added method to collect few informations about installed business templates
Only name and revision.
parent
58dd3a51
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
product/ERP5/Tool/IntrospectionTool.py
product/ERP5/Tool/IntrospectionTool.py
+11
-0
No files found.
product/ERP5/Tool/IntrospectionTool.py
View file @
ccd851c0
...
...
@@ -356,6 +356,17 @@ class IntrospectionTool(LogMixin, BaseTool):
return
get_system_version_dict
()
security
.
declareProtected
(
Permissions
.
ManagePortal
,
security
.
declareProtected
(
Permissions
.
ManagePortal
,
'_getBusinessTemplateRevisionDict'
)
def
_getBusinessTemplateRevisionDict
(
self
):
""" Return a Dictionary of installed business templates and their revisions
"""
business_template_dict
=
{}
for
installed
in
self
.
portal_templates
.
getInstalledBusinessTemplateList
():
business_template_dict
[
installed
.
getTitle
()]
=
installed
.
getRevision
()
return
business_template_dict
security
.
declareProtected
(
Permissions
.
ManagePortal
,
'_getActivityDict'
)
def
_getActivityDict
(
self
):
...
...
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