Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import olap.xmla.xmla as xmla
- location = "http://localhost:8080/saiku/xmla"
- xmla_provider = xmla.XMLAProvider()
- xmla_connection = xmla_provider.connect(location=location)
- olap_source = xmla_connection.getOLAPSource()
- h = olap_source.getCatalog('FoodMart').getCube('Sales').getDimension('[Product]').getHierarchy('[Products')
- for member in h.getMembers():
- print "Member: %s" % member.getUniqueName()
- if member.hasChildren():
- #ERROR OCCURS WHEN EXECUTING NEXT LINE
- for child in member.getChildren():
- print "Child: %s" % child.getUniqueName()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement