| 68 | return |
| 69 | |
| 70 | def __mark_django_view(self, context): |
| 71 | if "flask_route" in context.node.tags: |
| 72 | return |
| 73 | elif "django_view" in context.node.tags: |
| 74 | return |
| 75 | elif not isinstance(context.node, FunctionDef): |
| 76 | return |
| 77 | |
| 78 | for r in context.node.return_nodes.values(): # TODO: transition this to the apply_taint of FunctionDefPattern |
| 79 | f_name = r.cached_full_name |
| 80 | if type(f_name) != str: |
| 81 | continue |
| 82 | |
| 83 | |
| 84 | if "django_view" in r.value.tags: |
| 85 | context.node.args.taints["request"] = Taints.TAINTED |
| 86 | context.visitor.modified = True |
| 87 | return |
| 88 | |
| 89 | def __mark_sources(self, context): |
| 90 | if isinstance( |