def register_generic_role(canonical_name, node_class):
 role = GenericRole(canonical_name, node_class)
 register_canonical_role(canonical_name, role)

def register_generic_role ( canonical_name , node_class ) : role = GenericRole ( canonical_name , node_class ) register_canonical_role ( canonical_name , role )
for roles which simply wrap a given node_class around the text .