Skip to content

Possibly buggy chaining of filters on ElementLists #199

Answered by Wuestengecko
ewuerger asked this question in Q&A
Discussion options

You must be logged in to vote

I could get a matching reqif.AttributeDefinition before and then do it without chaining,... but that wouldn't be so awesome and would feel unmodern.

Ugh. The thought of it! Disgusting. I'll raise this to top priority.

req.attributes.by_definition.by_identifier

Almost :) You want to filter by the definition.identifier, so you need to call:

req.attributes.by_definition.identifier

The raised error (KeyError: 'Submitted at system_requirement') looks weird for the input code though. Are you sure you copy-pasted this correctly? If so, there might actually be a bug there.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ewuerger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants