Converts Attribute to ShadowAttribute
Converts Attribute to ShadowAttribute

It is useful when copy/pasting attributes from two events. Like:

import misp

s = misp.MispServer()
copy = s.events.get(657)
paste = s.events.get(387)
for attr in copy.attributes:
    prop = misp.MispShadowAttribute.from_attribute(attr)
    s.shadowattributes.add(paste, prop)

nbareil/python-misp