Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
4ca71d21
Commit
4ca71d21
authored
Aug 10, 2011
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix TestWebCrawler.test_02_crawlWebSite
parent
cc05e664
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
product/ERP5/Tool/ContributionTool.py
product/ERP5/Tool/ContributionTool.py
+11
-10
No files found.
product/ERP5/Tool/ContributionTool.py
View file @
4ca71d21
...
@@ -204,7 +204,17 @@ class ContributionTool(BaseTool):
...
@@ -204,7 +204,17 @@ class ContributionTool(BaseTool):
container
.
getTypeInfo
().
allowType
(
portal_type
)):
container
.
getTypeInfo
().
allowType
(
portal_type
)):
portal_type
=
'Embedded File'
portal_type
=
'Embedded File'
if
container
is
not
None
:
if
container
is
None
:
# If the portal_type was provided, we can go faster
if
portal_type
:
# We know the portal_type, let us find the default module
# and use it as container
try
:
container
=
portal
.
getDefaultModule
(
portal_type
)
except
ValueError
:
pass
elif
not
url
:
# Simplify things here and return a document immediately
# Simplify things here and return a document immediately
# XXX Nicolas: This will break support of WebDAV
# XXX Nicolas: This will break support of WebDAV
# if _setObject is not called
# if _setObject is not called
...
@@ -217,15 +227,6 @@ class ContributionTool(BaseTool):
...
@@ -217,15 +227,6 @@ class ContributionTool(BaseTool):
input_parameter_dict
=
input_parameter_dict
)
input_parameter_dict
=
input_parameter_dict
)
return
document
return
document
# If the portal_type was provided, we can go faster
if
portal_type
:
# We know the portal_type, let us find the default module
# and use it as container
try
:
container
=
portal
.
getDefaultModule
(
portal_type
)
except
ValueError
:
pass
#
#
# Check if same file is already exists. if it exists, then update it.
# Check if same file is already exists. if it exists, then update it.
#
#
...
...
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