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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
6879d011
Commit
6879d011
authored
Jan 09, 2020
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Folder: Followup of
04b49859
to not use portal_trash since temp_object can now be created anywhere.
parent
1bce8563
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
bt5/erp5_administration/ExtensionTemplateItem/portal_components/extension.erp5.ERP5Administration.py
...em/portal_components/extension.erp5.ERP5Administration.py
+2
-1
bt5/erp5_paypal_secure_payment/DocumentTemplateItem/portal_components/document.erp5.PaypalService.py
...lateItem/portal_components/document.erp5.PaypalService.py
+2
-2
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getCategoriesSpreadSheetMapping.py
...l_skins/erp5_core/Base_getCategoriesSpreadSheetMapping.py
+1
-1
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getConversionFormatItemList.py
...ortal_skins/erp5_core/Base_getConversionFormatItemList.py
+1
-1
No files found.
bt5/erp5_administration/ExtensionTemplateItem/portal_components/extension.erp5.ERP5Administration.py
View file @
6879d011
...
...
@@ -147,9 +147,10 @@ def checkConversionToolAvailability(self):
severity
=
0
try
:
temp_document
=
portal
.
portal_trash
.
newContent
(
temp_document
=
self
.
newContent
(
portal_type
=
'OOo Document'
,
temp_object
=
True
,
id
=
document_id
,
data
=
document_file
.
data
,
source_reference
=
document_id
)
temp_document
.
convertToBaseFormat
()
...
...
bt5/erp5_paypal_secure_payment/DocumentTemplateItem/portal_components/document.erp5.PaypalService.py
View file @
6879d011
...
...
@@ -66,7 +66,7 @@ class PaypalService(XMLObject):
"""See Payment Service Interface Documentation"""
page_template
=
kw
.
pop
(
"page_template"
)
paypal_dict
=
kw
.
get
(
"paypal_dict"
,
{})
temp_document
=
self
.
getPortalObject
().
portal_trash
.
newContent
(
temp_document
=
self
.
newContent
(
portal_type
=
'Document'
,
temp_object
=
True
,
link_url_string
=
self
.
getLinkUrlString
(),
...
...
@@ -75,7 +75,7 @@ class PaypalService(XMLObject):
# append the rest of transmitted parameters page template
**
kw
)
return
getattr
(
temp_document
.
__of__
(
self
)
,
page_template
)()
return
getattr
(
temp_document
,
page_template
)()
def
notifySuccess
(
self
,
redirect_path
=
None
,
REQUEST
=
None
):
"""See Payment Service Interface Documentation"""
...
...
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getCategoriesSpreadSheetMapping.py
View file @
6879d011
...
...
@@ -84,7 +84,7 @@ if hasattr(import_file, 'headers'):
content_type
=
import_file
.
headers
.
get
(
'Content-Type'
,
''
)
if
not
(
content_type
.
startswith
(
'application/vnd.sun.xml'
)
or
content_type
.
startswith
(
'application/vnd.oasis.opendocument'
)):
tmp_ooo
=
portal
.
portal_trash
.
newContent
(
tmp_ooo
=
context
.
newContent
(
portal_type
=
'OOo Document'
,
temp_object
=
True
,
data
=
import_file
.
read
(),
...
...
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getConversionFormatItemList.py
View file @
6879d011
'''Returns all possible document conversions from the `base_content_type`.
'''
td
=
context
.
getPortalObject
().
portal_trash
.
newContent
(
td
=
context
.
newContent
(
portal_type
=
'OOo Document'
,
temp_object
=
True
,
base_content_type
=
base_content_type
,
...
...
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