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
Nikola Balog
erp5
Commits
1c1618a3
Commit
1c1618a3
authored
Nov 20, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BusinessTemplate: don't export publication_url if it's a file:// URL
parent
1f897452
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+4
-1
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
1c1618a3
...
@@ -88,7 +88,7 @@ from warnings import warn
...
@@ -88,7 +88,7 @@ from warnings import warn
from
lxml.etree
import
parse
from
lxml.etree
import
parse
from
xml.sax.saxutils
import
escape
from
xml.sax.saxutils
import
escape
from
Products.CMFCore.Expression
import
Expression
from
Products.CMFCore.Expression
import
Expression
from
six.moves.urllib.parse
import
quote
,
unquote
from
six.moves.urllib.parse
import
quote
,
unquote
,
urlparse
from
difflib
import
unified_diff
from
difflib
import
unified_diff
import
posixpath
import
posixpath
import
transaction
import
transaction
...
@@ -5743,6 +5743,9 @@ Business Template is a set of definitions, such as skins, portal types and categ
...
@@ -5743,6 +5743,9 @@ Business Template is a set of definitions, such as skins, portal types and categ
value
=
self
.
getProperty
(
id
)
value
=
self
.
getProperty
(
id
)
if
not
value
:
if
not
value
:
continue
continue
if
id
==
'publication_url'
:
if
urlparse
(
value
).
scheme
in
(
'file'
,
''
):
continue
if
prop_type
in
(
'text'
,
'string'
,
'int'
,
'boolean'
):
if
prop_type
in
(
'text'
,
'string'
,
'int'
,
'boolean'
):
bta
.
addObject
(
str
(
value
),
name
=
id
,
path
=
'bt'
,
ext
=
''
)
bta
.
addObject
(
str
(
value
),
name
=
id
,
path
=
'bt'
,
ext
=
''
)
elif
prop_type
in
(
'lines'
,
'tokens'
):
elif
prop_type
in
(
'lines'
,
'tokens'
):
...
...
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