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
56af85cf
Commit
56af85cf
authored
Jun 06, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! ERP5Type: make sure the correct __setattr__ is used when the class is still ghost
parent
468541e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
product/ERP5Type/dynamic/lazy_class.py
product/ERP5Type/dynamic/lazy_class.py
+2
-0
No files found.
product/ERP5Type/dynamic/lazy_class.py
View file @
56af85cf
...
@@ -125,6 +125,8 @@ class GhostBaseMetaClass(ExtensionClass, AccessorHolderType):
...
@@ -125,6 +125,8 @@ class GhostBaseMetaClass(ExtensionClass, AccessorHolderType):
correct __setattr__ is used. For example, without this, a broken object
correct __setattr__ is used. For example, without this, a broken object
(ERP5BaseBroken) would not raise.
(ERP5BaseBroken) would not raise.
"""
"""
if
name
.
startswith
((
'_p_'
,
'_v_'
)):
return
super
(
cls
,
self
).
__setattr__
(
name
,
value
)
self
.
__class__
.
loadClass
()
self
.
__class__
.
loadClass
()
setattr
(
self
,
name
,
value
)
setattr
(
self
,
name
,
value
)
cls
.
__setattr__
=
__setattr__
cls
.
__setattr__
=
__setattr__
...
...
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