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
Xueyun Qian
erp5
Commits
7c696ab0
Commit
7c696ab0
authored
Jun 24, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5/Interaction.py: add function showDict to allow Base_viewDict.
parent
03e1fdb0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
product/ERP5/Interaction.py
product/ERP5/Interaction.py
+10
-0
No files found.
product/ERP5/Interaction.py
View file @
7c696ab0
...
...
@@ -259,6 +259,16 @@ class InteractionDefinition (SimpleItem):
def
getReference
(
self
):
return
self
.
id
def
showDict
(
self
):
attr_dict
=
{}
for
attr
in
sorted
(
self
.
__dict__
.
keys
()):
value
=
getattr
(
self
,
attr
)
if
value
is
not
None
:
attr_dict
[
attr
]
=
value
else
:
attr_dict
[
attr
]
=
''
return
attr_dict
Globals
.
InitializeClass
(
InteractionDefinition
)
...
...
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