#13464 closed (fixed)
django.utils.module_loading.has_submodule is incorrectly implemented
| Reported by: | Alex Gaynor | Owned by: | nobody |
|---|---|---|---|
| Component: | Core (Other) | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Brett Cannon | Triage Stage: | Accepted |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The main problem is we assume a loader has find_module method, which is only true if the loader and finder are a single class, which is in no way guaranteed. Brett Cannon has suggested an alternate implementation, which basically needs to re-implement the Python import machinery: http://paste.pocoo.org/show/209115/ (I'll turn it into a proper patch soonish)
Attachments (2)
Change History (6)
by , 16 years ago
| Attachment: | django-importer.diff added |
|---|
by , 16 years ago
| Attachment: | django-importer.2.diff added |
|---|
comment:1 by , 16 years ago
| Has patch: | set |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
comment:2 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:3 by , 16 years ago
Note:
See TracTickets
for help on using tickets.
Moar lazy