Commit 7c696ab0 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

ERP5/Interaction.py: add function showDict to allow Base_viewDict.

parent 03e1fdb0
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment