MAECProject/python-maec — pull request #59 by bworrell (2014-11-24 19:01:35+00:00)
Title: Namespace collection

This pull request fixes an observed issue where not all XML namespaces were being added to `ns_info` argument via `to_obj()` call.

Changes made:
* Added `self._collect_ns_info(ns_info)` calls within overriden `to_obj()` methods.
* Changed `to_obj()` parameter lists to comply with pep8 style

**Note**
Ideally, I would have used `super(Foo, self).to_obj()` instead of `self._collect_ns_info()` in these overridden methods, but I think it'd end up changing the output/behavior of the methods (building potentially empty XML elements).

Example `CandidateIndicatorCollectionList.to_obj()`:
```python
def to_obj(self, return_obj=None, ns_info=None):
candidate_indicator_collection_list_obj = bundle_binding.CandidateIndicatorCollectionListType()

super(CandidateIndicatorCollectionList, self).to_obj(
return_obj=candidate_indicator_collection_list_obj,
ns_info=ns_info
)

if candidate_indicator_collection_list_obj.hasContent_():
return candidate_indicator_collection_list_obj
```