Profile pictures cannot be found by catalog path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KARL3 |
Fix Released
|
Low
|
Shane Hathaway |
Bug Description
While working on the metadata extraction script for usage reporting, I ran into an error with using find_model on profile pictures using the path from the address_to_docid index of the catalog. The code below run in debug will highlight the problem. If you want to see the individual traceback, just remove the try/except.
>>> from repoze.
>>> for path, docid in root.catalog.
... try:
... obj = find_model(root, path)
... except:
... print 'Failed to find model at path: %s' % path
...
Failed to find model at path: /profiles/
Failed to find model at path: /profiles/
Failed to find model at path: /profiles/
...
Changed in karl3: | |
assignee: | nobody → Chris Rossi (chris-archimedeanco) |
importance: | Undecided → Low |
milestone: | none → m21 |
Changed in karl3: | |
milestone: | m22 → m23 |
Rescheduled to this week.