'Get effective rules for this rebulk object and its children.
:param context:
:type context:
:return:
:rtype:'

def effective_rules(self, context=None):

    rules = Rules()
    rules.extend(self._rules)
    for rebulk in self._rebulks:
        if (not rebulk.disabled(context)):
            extend_safe(rules, rebulk._rules)
    return rules
