izar / pytm

A Pythonic framework for threat modeling
Other
894 stars 169 forks source link

allow advanced templates in repeat blocks #81

Closed nineinchnick closed 4 years ago

nineinchnick commented 4 years ago

Allows to call methods on items in repeat blocks (notice item.target.display_name:call):

{findings:repeat:|{{item.target.display_name:call}}|{{item.id}}|{{item.description}}|{{item.severity}}|{{item.details}}|{{item.mitigations}}|{{item.example}}|{{item.references}}
}

We could use the property decorator but there's no reason why the slightly more advanced template format shouldn't be supported in the repeat block.

ghost commented 4 years ago

Congratulations :beers:. DeepCode analyzed your code in 0.102 seconds and we found no issues. Enjoy a moment of no bugs :sunny:.

:speech_balloon: This comment has been generated by the DeepCode bot, installed by the owner of the repository. The DeepCode bot protects your repository by detecting and commenting on security vulnerabilities or other critical issues.


:relaxed: If you want to provide feedback on our bot, here is how to contact us.

izar commented 4 years ago

Thanks!