Skip to content
Snippets Groups Projects
Commit f7ee5e75 authored by florent's avatar florent
Browse files

Add a class attribute to store whether command methods have been created.

    * src/dynamic_graph/entity.py.
parent bb0ddc99
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,8 @@ def updateEntityClasses(dictionary): ...@@ -26,6 +26,8 @@ def updateEntityClasses(dictionary):
a.class_name = e a.class_name = e
# set class constructor # set class constructor
setattr(a, '__init__', initEntity) setattr(a, '__init__', initEntity)
# set class attribute to store whether command methods have been created
setattr(a, 'commandCreated', False)
# Store new class in dictionary with class name # Store new class in dictionary with class name
dictionary[e] = a dictionary[e] = a
# Store class name in local list # Store class name in local list
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment