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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tomáš Peterka
erp5
Commits
6b0e805d
Commit
6b0e805d
authored
May 07, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Type: getAccessorHolderPropertyList should always exist
parent
96eca6f1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
product/ERP5Type/Base.py
product/ERP5Type/Base.py
+1
-4
product/ERP5Type/dynamic/lazy_class.py
product/ERP5Type/dynamic/lazy_class.py
+1
-1
No files found.
product/ERP5Type/Base.py
View file @
6b0e805d
...
@@ -779,13 +779,10 @@ class Base( CopyContainer,
...
@@ -779,13 +779,10 @@ class Base( CopyContainer,
def
_propertyMap
(
self
,
local_properties
=
False
):
def
_propertyMap
(
self
,
local_properties
=
False
):
""" Method overload - properties are now defined on the ptype """
""" Method overload - properties are now defined on the ptype """
klass
=
self
.
__class__
property_list
=
[]
property_list
=
[]
# Get all the accessor holders for this portal type
# Get all the accessor holders for this portal type
if
not
local_properties
:
if
not
local_properties
:
if
hasattr
(
klass
,
'getAccessorHolderPropertyList'
):
property_list
+=
self
.
__class__
.
getAccessorHolderPropertyList
()
property_list
+=
\
self
.
__class__
.
getAccessorHolderPropertyList
()
property_list
+=
getattr
(
self
,
'_local_properties'
,
[])
property_list
+=
getattr
(
self
,
'_local_properties'
,
[])
return
tuple
(
property_list
)
return
tuple
(
property_list
)
...
...
product/ERP5Type/dynamic/lazy_class.py
View file @
6b0e805d
...
@@ -178,7 +178,7 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
...
@@ -178,7 +178,7 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
if
content
or
property
[
'type'
]
!=
'content'
:
if
content
or
property
[
'type'
]
!=
'content'
:
property_dict
.
setdefault
(
property
[
'id'
],
property
)
property_dict
.
setdefault
(
property
[
'id'
],
property
)
return
property_dict
.
values
()
return
property_dict
.
iter
values
()
def
resetAcquisition
(
cls
):
def
resetAcquisition
(
cls
):
# First, fill the __get__ slot of the class
# First, fill the __get__ slot of the class
...
...
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