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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
erp5
Commits
a8a2604e
Commit
a8a2604e
authored
Jan 06, 2016
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
virtual_folder: fix handling of default parameter in _getOb
parent
733458b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
product/ERP5/mixin/virtual_folder.py
product/ERP5/mixin/virtual_folder.py
+6
-1
No files found.
product/ERP5/mixin/virtual_folder.py
View file @
a8a2604e
...
...
@@ -83,4 +83,9 @@ class VirtualFolderMixin:
if
document_url
is
not
None
:
return
self
.
getPortalObject
().
unrestrictedTraverse
(
document_url
)
return
Folder
.
_getOb
(
self
,
id
,
**
kw
)
try
:
return
Folder
.
_getOb
(
self
,
id
,
**
kw
)
except
KeyError
:
if
default
is
_marker
:
raise
return
default
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