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
Léo-Paul Géneau
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):
...
@@ -147,9 +147,10 @@ def checkConversionToolAvailability(self):
severity
=
0
severity
=
0
try
:
try
:
temp_document
=
portal
.
portal_trash
.
newContent
(
temp_document
=
self
.
newContent
(
portal_type
=
'OOo Document'
,
portal_type
=
'OOo Document'
,
temp_object
=
True
,
temp_object
=
True
,
id
=
document_id
,
data
=
document_file
.
data
,
data
=
document_file
.
data
,
source_reference
=
document_id
)
source_reference
=
document_id
)
temp_document
.
convertToBaseFormat
()
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):
...
@@ -66,7 +66,7 @@ class PaypalService(XMLObject):
"""See Payment Service Interface Documentation"""
"""See Payment Service Interface Documentation"""
page_template
=
kw
.
pop
(
"page_template"
)
page_template
=
kw
.
pop
(
"page_template"
)
paypal_dict
=
kw
.
get
(
"paypal_dict"
,
{})
paypal_dict
=
kw
.
get
(
"paypal_dict"
,
{})
temp_document
=
self
.
getPortalObject
().
portal_trash
.
newContent
(
temp_document
=
self
.
newContent
(
portal_type
=
'Document'
,
portal_type
=
'Document'
,
temp_object
=
True
,
temp_object
=
True
,
link_url_string
=
self
.
getLinkUrlString
(),
link_url_string
=
self
.
getLinkUrlString
(),
...
@@ -75,7 +75,7 @@ class PaypalService(XMLObject):
...
@@ -75,7 +75,7 @@ class PaypalService(XMLObject):
# append the rest of transmitted parameters page template
# append the rest of transmitted parameters page template
**
kw
**
kw
)
)
return
getattr
(
temp_document
.
__of__
(
self
)
,
page_template
)()
return
getattr
(
temp_document
,
page_template
)()
def
notifySuccess
(
self
,
redirect_path
=
None
,
REQUEST
=
None
):
def
notifySuccess
(
self
,
redirect_path
=
None
,
REQUEST
=
None
):
"""See Payment Service Interface Documentation"""
"""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'):
...
@@ -84,7 +84,7 @@ if hasattr(import_file, 'headers'):
content_type
=
import_file
.
headers
.
get
(
'Content-Type'
,
''
)
content_type
=
import_file
.
headers
.
get
(
'Content-Type'
,
''
)
if
not
(
content_type
.
startswith
(
'application/vnd.sun.xml'
)
if
not
(
content_type
.
startswith
(
'application/vnd.sun.xml'
)
or
content_type
.
startswith
(
'application/vnd.oasis.opendocument'
)):
or
content_type
.
startswith
(
'application/vnd.oasis.opendocument'
)):
tmp_ooo
=
portal
.
portal_trash
.
newContent
(
tmp_ooo
=
context
.
newContent
(
portal_type
=
'OOo Document'
,
portal_type
=
'OOo Document'
,
temp_object
=
True
,
temp_object
=
True
,
data
=
import_file
.
read
(),
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`.
'''Returns all possible document conversions from the `base_content_type`.
'''
'''
td
=
context
.
getPortalObject
().
portal_trash
.
newContent
(
td
=
context
.
newContent
(
portal_type
=
'OOo Document'
,
portal_type
=
'OOo Document'
,
temp_object
=
True
,
temp_object
=
True
,
base_content_type
=
base_content_type
,
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