Skip to content

Commit

Permalink
Table linkbase: z axis containing an aspect node filter along the axi…
Browse files Browse the repository at this point in the history
…s 'descendant-or-self'

pull request #42 by Acsone
  • Loading branch information
Herm Fischer authored and Herm Fischer committed Apr 18, 2015
1 parent f5c7428 commit b01e01a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arelle/ViewWinRenderedGrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -1007,12 +1007,17 @@ def explicitDimensionFilterMembers(self, structuralNode, structuralNodeWithFilte
else:
headerValues[header] = memConcept
elif memberModel.axis and memberModel.linkrole and memberModel.arcrole:
# merge of pull request 42 acsone:TABLE_Z_AXIS_DESCENDANT_OR_SELF
if memberModel.axis.endswith('-or-self'):
searchAxis = memberModel.axis[:len(memberModel.axis)-len('-or-self')]
else:
searchAxis = memberModel.axis
relationships = concept_relationships(self.rendrCntx,
None,
(memQname,
memberModel.linkrole,
memberModel.arcrole,
memberModel.axis),
searchAxis),
False) # return flat list
for rel in relationships:
if rel.isUsable:
Expand Down

0 comments on commit b01e01a

Please sign in to comment.