You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
type field in win_event_object.py is not right #213
Receiving this error when trying to convert WinEvent objects to XML:
//anaconda/lib/python2.7/site-packages/cybox/init.pyc in to_obj(self)
100
101 Returns:
--> 102 An instance of this Entity's _binding_class with properties
103 set from this Entity.
104 """
Hi, @xorlord . Can you provide any more details of the code that's causing this error (a snippet would be especially helpful)? The error message is pointing to a line in the middle of a docstring/comment.
Activity
gtback commentedon Oct 22, 2014
Hi, @xorlord . Can you provide any more details of the code that's causing this error (a snippet would be especially helpful)? The error message is pointing to a line in the middle of a docstring/comment.
ikiril01 commentedon Oct 22, 2014
I suspect this has due to with the 'type' field in the Win Event Object being named 'type' and not 'type_':
https://github.com/CybOXProject/python-cybox/blob/master/cybox/objects/win_event_object.py#L19
xorlord commentedon Oct 22, 2014
Yes, I believe 'type' vs. 'type_' is the issue.
gtback commentedon Oct 22, 2014
Ahhh, OK. This is part of #188, then.
xorlord commentedon Oct 22, 2014
Ahh, thanks. Will remember to search the issues next time.