Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type field in win_event_object.py is not right #213

Closed
xorlord opened this issue Oct 22, 2014 · 5 comments
Closed

type field in win_event_object.py is not right #213

xorlord opened this issue Oct 22, 2014 · 5 comments
Milestone

Comments

@xorlord
Copy link

xorlord commented Oct 22, 2014

Using Cybox 2.1.0.8.

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 """

@gtback
Copy link
Contributor

gtback commented 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
Copy link
Member

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
Copy link
Author

xorlord commented Oct 22, 2014

Yes, I believe 'type' vs. 'type_' is the issue.

@gtback
Copy link
Contributor

gtback commented Oct 22, 2014

Ahhh, OK. This is part of #188, then.

@xorlord
Copy link
Author

xorlord commented Oct 22, 2014

Ahh, thanks. Will remember to search the issues next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants