Opened 16 years ago
Last modified 13 years ago
#240 reopened defect
Genshi gets relative path wrong for <xi:includes
Reported by: | j@… | Owned by: | cmlenz |
---|---|---|---|
Priority: | major | Milestone: | 0.5.1 |
Component: | Template processing | Version: | 0.5 |
Keywords: | template loader | Cc: | oliver@…, ryan@… |
Description
in genshi/template/loader.py the relative_to is only used if its not an absolute path, this has to be os.path.isabs(filename) instead. this fixes problems related to xi:includes of templates with the same name in two direcotries, since right now just the filename is used as cachekey not the absolute path of the template.
Attachments (1)
Change History (7)
Changed 16 years ago by j
comment:1 Changed 16 years ago by cmlenz
- Component changed from General to Template processing
- Resolution set to fixed
- Status changed from new to closed
comment:2 Changed 16 years ago by Oliver <oliver@…>
- Keywords template loader added
- Resolution fixed deleted
- Status changed from closed to reopened
I would like to reopen this bug again...same bug and same solution.
comment:3 Changed 16 years ago by Oliver <oliver@…>
- Cc oliver@… added
comment:4 Changed 15 years ago by pj@…
This is a major issue with no activity in 2 months? :(
comment:5 Changed 15 years ago by rpetrello
- Cc ryan@… added
Any news or progress on this issue? We're still experiencing it in Genshi 0.5.1 w/ the latest TurboGears (TG2.1a3 and TG2.1b1).
comment:6 Changed 13 years ago by Libby
Is that really all there is to it because that'd be fblabegrasting.
patch to check filename