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
Alexander Emmerich
erp5
Commits
628845b6
Commit
628845b6
authored
Feb 08, 2021
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! Add support for CMF 2.3
fix pylint warnings
parent
a632fae8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
bt5/erp5_forge/TestTemplateItem/portal_components/test.erp5.testTemplateTool.py
...plateItem/portal_components/test.erp5.testTemplateTool.py
+3
-2
product/ERP5/bootstrap/erp5_core/DocumentTemplateItem/portal_components/document.erp5.File.py
...umentTemplateItem/portal_components/document.erp5.File.py
+1
-2
No files found.
bt5/erp5_forge/TestTemplateItem/portal_components/test.erp5.testTemplateTool.py
View file @
628845b6
...
@@ -148,8 +148,9 @@ class TestTemplateTool(ERP5TypeTestCase):
...
@@ -148,8 +148,9 @@ class TestTemplateTool(ERP5TypeTestCase):
the new bt5 is not installed, only imported.
the new bt5 is not installed, only imported.
"""
"""
self
.
_svn_setup_ssl
()
self
.
_svn_setup_ssl
()
global
PropertiesTool
# we make this class a global so that it can be pickled
class
PropertiesTool
(
ActionsTool
):
global
PropertiesTool
# pylint:disable=global-variable-not-assigned
class
PropertiesTool
(
ActionsTool
):
# pylint:disable=redefined-outer-name
id
=
'portal_properties'
id
=
'portal_properties'
cls
=
PropertiesTool
cls
=
PropertiesTool
...
...
product/ERP5/bootstrap/erp5_core/DocumentTemplateItem/portal_components/document.erp5.File.py
View file @
628845b6
...
@@ -36,7 +36,7 @@ from erp5.component.document.Document import ConversionError
...
@@ -36,7 +36,7 @@ from erp5.component.document.Document import ConversionError
from
Products.ERP5Type.Base
import
Base
,
removeIContentishInterface
from
Products.ERP5Type.Base
import
Base
,
removeIContentishInterface
from
OFS.Image
import
File
as
OFS_File
from
OFS.Image
import
File
as
OFS_File
from
Products.ERP5Type.Utils
import
deprecated
from
Products.ERP5Type.Utils
import
deprecated
from
cStringIO
import
StringIO
def
_unpackData
(
data
):
def
_unpackData
(
data
):
"""
"""
...
@@ -100,7 +100,6 @@ class File(Document, OFS_File):
...
@@ -100,7 +100,6 @@ class File(Document, OFS_File):
"""
"""
if
'file'
in
kw
:
if
'file'
in
kw
:
file_object
=
kw
.
pop
(
'file'
)
file_object
=
kw
.
pop
(
'file'
)
precondition
=
kw
.
get
(
'precondition'
)
filename
=
getattr
(
file_object
,
'filename'
,
None
)
filename
=
getattr
(
file_object
,
'filename'
,
None
)
# if file field is empty(no file is uploaded),
# if file field is empty(no file is uploaded),
# filename is empty string.
# filename is empty string.
...
...
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