Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arnaud Fontaine
erp5
Commits
448bf18f
Commit
448bf18f
authored
Jul 20, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove trailing whitespace
parent
3a9bece1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
product/ERP5/Tool/TemplateTool.py
product/ERP5/Tool/TemplateTool.py
+11
-11
No files found.
product/ERP5/Tool/TemplateTool.py
View file @
448bf18f
...
...
@@ -96,7 +96,7 @@ class TemplateTool (BaseTool):
title
=
'Template Tool'
meta_type
=
'ERP5 Template Tool'
portal_type
=
'Template Tool'
allowed_types
=
(
'ERP5 Business Template'
,
)
allowed_types
=
(
'ERP5 Business Template'
,
)
# This stores information on repositories.
repository_dict
=
{}
...
...
@@ -104,8 +104,8 @@ class TemplateTool (BaseTool):
# Declarative Security
security
=
ClassSecurityInfo
()
security
.
declareProtected
(
Permissions
.
ManagePortal
,
'manage_overview'
)
manage_overview
=
DTMLFile
(
'explainTemplateTool'
,
_dtmldir
)
security
.
declareProtected
(
Permissions
.
ManagePortal
,
'manage_overview'
)
manage_overview
=
DTMLFile
(
'explainTemplateTool'
,
_dtmldir
)
def
getInstalledBusinessTemplate
(
self
,
title
,
strict
=
False
,
**
kw
):
"""
...
...
@@ -232,7 +232,7 @@ class TemplateTool (BaseTool):
return
"file://%s/"
%
pathname2url
(
os
.
path
.
join
(
getConfiguration
().
instancehome
,
'bt5'
))
security
.
declareProtected
(
'Import/Export objects'
,
'save'
)
security
.
declareProtected
(
'Import/Export objects'
,
'save'
)
def
save
(
self
,
business_template
,
REQUEST
=
None
,
RESPONSE
=
None
):
"""
Save the BusinessTemplate in the servers's filesystem.
...
...
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