def _nodeInit():
    nameToAttr = {}
    for attr in Plugin.attributes:
        mattr = attr.create(Plugin)
        Plugin.addAttribute(mattr)
        nameToAttr[attr['name']] = mattr
    for (src, dst) in Plugin.affects:
        log.debug(("'%s' affects '%s'" % (src, dst)))
        Plugin.attributeAffects(nameToAttr[src], nameToAttr[dst])
def _nodeInit():
    nameToAttr = {}
    for attr in Plugin.attributes:
        mattr = attr.create(Plugin)
        Plugin.addAttribute(mattr)
        nameToAttr[attr['name']] = mattr
    for (src, dst) in Plugin.affects:
        log.debug(("'%s' affects '%s'" % (src, dst)))
        Plugin.attributeAffects(nameToAttr[src], nameToAttr[dst])