I can't get access to the rules of rule-based renderer, python says there's no attribute "rootRule", though documentation says it should be (http://www.qgis.org/api/classQgsRuleBasedRendererV2.html)
>>> layer = qgis.utils.iface.activeLayer()
>>> renderer = layer.rendererV2()
>>> type(renderer)
<class 'qgis.core.QgsRuleBasedRendererV2'>
>>> renderer.rootRule()
Traceback (most recent call last):
File "<input>", line 1, in <module>
AttributeError: 'QgsRuleBasedRendererV2' object has no attribute 'rootRule'
Is it because there's no python binding for rootRule() method? Is there other way to access the rules of the renderer?
I am using QGIS 1.8.0
