(dict_, key)
| 137 | |
| 138 | |
| 139 | def _get_convention(dict_, key): |
| 140 | for super_ in key.__mro__: |
| 141 | if super_ in _prefix_dict and _prefix_dict[super_] in dict_: |
| 142 | return dict_[_prefix_dict[super_]] |
| 143 | elif super_ in dict_: |
| 144 | return dict_[super_] |
| 145 | else: |
| 146 | return None |
| 147 | |
| 148 | |
| 149 | def _constraint_name_for_table(const, table): |
no outgoing calls
no test coverage detected