Skip to content

Commit b8683c7

Browse files
author
Gael
committed
event can now have dict attributes
1 parent 0c7e955 commit b8683c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

framework/event.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ def __str__(self):
3131
tmp = value
3232
# check for recursivity
3333
recursive = False
34-
if hasattr(value, '__getitem__'):
35-
if (len(value)>0 and value[0].__class__ == value.__class__):
34+
if hasattr(value, '__getitem__') and \
35+
not isinstance(value, collections.Mapping) and \
36+
(len(value)>0 and value[0].__class__ == value.__class__):
3637
recursive = True
3738
if isinstance( value, collections.Iterable ) and \
3839
not isinstance(value, (str,unicode)) and \

0 commit comments

Comments
 (0)