#13348 closed (fixed)
After r12950, load_app does not return models modules from eggs
Reported by: | Karen Tracey | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
#13334 points out a problem loading template tags from eggs. Since the change (to use imp.find_module
) that introduced that problem was the inspiration for r12950, the r12950 code has the same problem, only for r12950 the problem involves loading models modules from apps in eggs. Ramiro pointed to a patch on #9427 that attempts to find modules loaded by eggs, but I could not quite get that code to work. I'll attach a patch that I did get to work, with tests. This patch introduces a utility function to answer the question: does this loaded module have a submodule named x? This seems to be something we could use in a few places.
Attachments (4)
Change History (9)
by , 15 years ago
Attachment: | egg_loading.diff added |
---|
by , 15 years ago
Attachment: | modelapp.egg added |
---|
by , 15 years ago
Attachment: | nomodelapp.egg added |
---|
by , 15 years ago
Attachment: | omelet.egg added |
---|
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
The eggs are supposed to be in the diff but they're not. They're supposed to go under tests/regressiontests/app_loading/eggs.