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
Boris Kocherov
erp5
Commits
c53b7afd
Commit
c53b7afd
authored
Aug 22, 2013
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix InternetProtocolAddress portal_type for comptability
with dynamic property_sheets
parent
ec41c2b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
product/ERP5/Document/InternetProtocolAddress.py
product/ERP5/Document/InternetProtocolAddress.py
+4
-4
No files found.
product/ERP5/Document/InternetProtocolAddress.py
View file @
c53b7afd
...
@@ -72,8 +72,8 @@ class InternetProtocolAddress(Coordinate):
...
@@ -72,8 +72,8 @@ class InternetProtocolAddress(Coordinate):
if
result
is
None
:
if
result
is
None
:
if
self
.
isDetailed
():
if
self
.
isDetailed
():
tmp_list
=
[]
tmp_list
=
[]
for
prop
in
PropertySheet
.
InternetProtocolAddress
.
_properties
:
for
prop
in
self
.
getPortalObject
().
portal_property_sheets
.
InternetProtocolAddress
.
contentValues
()
:
property_id
=
prop
[
'id'
]
property_id
=
prop
.
getTitle
()
getter_name
=
'get%s'
%
convertToUpperCase
(
property_id
)
getter_name
=
'get%s'
%
convertToUpperCase
(
property_id
)
getter_method
=
getattr
(
self
,
getter_name
)
getter_method
=
getattr
(
self
,
getter_name
)
value
=
getter_method
(
''
)
value
=
getter_method
(
''
)
...
@@ -115,8 +115,8 @@ network_interface:eth0"""
...
@@ -115,8 +115,8 @@ network_interface:eth0"""
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'isDetailed'
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'isDetailed'
)
def
isDetailed
(
self
):
def
isDetailed
(
self
):
for
prop
in
PropertySheet
.
InternetProtocolAddress
.
_properties
:
for
prop
in
self
.
getPortalObject
().
portal_property_sheets
.
InternetProtocolAddress
.
contentValues
()
:
property_id
=
prop
[
'id'
]
property_id
=
prop
.
getTitle
()
tester_name
=
'has%s'
%
convertToUpperCase
(
property_id
)
tester_name
=
'has%s'
%
convertToUpperCase
(
property_id
)
tester_method
=
getattr
(
self
,
tester_name
)
tester_method
=
getattr
(
self
,
tester_name
)
value
=
tester_method
()
value
=
tester_method
()
...
...
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