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

Add common (namespace, xml typename) => classname mapping/registration framework #21

Open
bworrell opened this issue Oct 29, 2015 · 0 comments

Comments

@bworrell
Copy link
Contributor

The way we map @xsi:type to Python classes (and resolve classes for @xsi:type) is different between python-stix, python-cybox, and python-maec.

We could probably factor out that code into a common module and modify existing code to register and resolve extensions via that module.

The may be related to CybOXProject/python-cybox#274 and could require a good amount of rethinking what XML metadata we attach to Entity classes.

Look at stix/__init__.py and stix/bindings/__init__.py as examples of what I did in python-stix (it could be done a lot better).

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

1 participant