Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
695e9782
Commit
695e9782
authored
Aug 30, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialise underlying folder if not initialised on _setObject call.
Fixes Zope 2.13 .
parent
10e9b870
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
product/ERP5Type/Core/Folder.py
product/ERP5Type/Core/Folder.py
+4
-0
No files found.
product/ERP5Type/Core/Folder.py
View file @
695e9782
...
...
@@ -974,8 +974,12 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn):
def
_setObject
(
self
,
*
args
,
**
kw
):
if
self
.
_folder_handler
==
HBTREE_HANDLER
:
if
self
.
_htree
is
None
:
HBTreeFolder2Base
.
__init__
(
self
,
self
.
id
)
return
CMFHBTreeFolder
.
_setObject
(
self
,
*
args
,
**
kw
)
else
:
if
self
.
_tree
is
None
:
BTreeFolder2Base
.
__init__
(
self
,
self
.
id
)
return
CMFBTreeFolder
.
_setObject
(
self
,
*
args
,
**
kw
)
def
get
(
self
,
id
,
default
=
None
):
...
...
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