(module)
| 43 | |
| 44 | |
| 45 | def find_all_templates(module): |
| 46 | pattern = re.compile("([^_]+)(?:_[^_]+)+") |
| 47 | names = set() |
| 48 | for full_name in module.__dict__: |
| 49 | result = pattern.match(full_name) |
| 50 | if result: |
| 51 | names.add(result.group(1)) |
| 52 | return list(names) |
| 53 | |
| 54 | |
| 55 | def get_any_instantiation(module, name): |