Skip to content

Conversation

@clenk
Copy link
Contributor

@clenk clenk commented Jul 29, 2016

Merge in the namespaces_integration branch, require the latest versions of mixbox and cybox, and fix a couple bugs.

chisholm and others added 19 commits October 5, 2015 15:32
python-cybox and mixbox repositories. The comparator_example
seems to not work properly yet.
…python-cybox and mixbox methods/properties.
* Swapped out some string concatenation code for format() and %
  formatted strings.
* Replaced some list comprehensions with generator comprehensions
  since the lists weren't being used ever.
* Modified some if/elif/else chains to remove redundant
  "if foo and <actual condition>" by adding a top-level
   "if not foo: return/continue/break" statement.
I updated it.

maec/__init__.py contains a custom mixbox.Entity subclass which
no longer worked.  I think the root cause was that it assumed
mixbox.namespaces.lookup_name() returned a Namespace object,
but it now returns a prefix.  That messed up the namespace handling
in this class.  It's now fixed to use the mixbox NamespaceSet
class.  Some wonky code is cleaned up too.
test dict (i.e. a dict with a value and xsi:type) round-trips to a
plain string.  I switched it to a plain string in the test dict.
Typedfields branch fixes to nosetests
@gtback
Copy link
Contributor

gtback commented Jul 29, 2016

Yay, this is passing! Thanks, @clenk

@gtback gtback merged commit 92a1ae6 into master Jul 29, 2016
@gtback gtback deleted the namespaces_integration branch July 29, 2016 21:18
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

Successfully merging this pull request may close these issues.

6 participants