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
Levin Zimmermann
erp5
Commits
d96e38f2
Commit
d96e38f2
authored
Aug 18, 2020
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: documentation may be a test page
parent
68ecab23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_getTemplateProxyParameter.py
...erp5_corporate_identity/Base_getTemplateProxyParameter.py
+2
-2
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_getTemplateProxyParameter.py
View file @
d96e38f2
...
@@ -9,7 +9,7 @@ Return local parameters that require proxy role to access
...
@@ -9,7 +9,7 @@ Return local parameters that require proxy role to access
# pass_source_data followup uid or context for retrieving info
# pass_source_data followup uid or context for retrieving info
# pass_flag_site whether called from a web site (no follow-up)
# pass_flag_site whether called from a web site (no follow-up)
from
base64
import
b64encode
from
base64
import
b64encode
portal_type_valid_template_list
=
[
"Web Site"
,
"Web Section"
,
"Web Page"
,
"Letter"
]
portal_type_valid_template_list
=
[
"Web Site"
,
"Web Section"
,
"Web Page"
,
"Letter"
,
"Test Page"
]
portal_type_valid_report_list
=
[
"Project"
,
"Sale Order"
,
"Sale Opportunity"
,
"Requirement Document"
,
"Person"
]
portal_type_valid_report_list
=
[
"Project"
,
"Sale Order"
,
"Sale Opportunity"
,
"Requirement Document"
,
"Person"
]
portal_type
=
context
.
getPortalType
()
portal_type
=
context
.
getPortalType
()
portal_object
=
context
.
getPortalObject
()
portal_object
=
context
.
getPortalObject
()
...
@@ -340,7 +340,7 @@ if pass_parameter is not None and pass_source_data is not None:
...
@@ -340,7 +340,7 @@ if pass_parameter is not None and pass_source_data is not None:
theme
=
None
theme
=
None
tmp
=
context
tmp
=
context
#check if web page is inside web site or web section
#check if web page is inside web site or web section
while
portal_type
==
'Web Page'
:
while
portal_type
in
(
'Web Page'
,
'Test Page'
)
:
tmp
=
tmp
.
aq_parent
tmp
=
tmp
.
aq_parent
portal_type
=
tmp
.
getPortalType
()
portal_type
=
tmp
.
getPortalType
()
...
...
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