ZopeTwoPageTemplateFile should use os.path.normpath
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.pagetemplate |
Invalid
|
Medium
|
Unassigned |
Bug Description
I need to be able to use relative paths with `up-level references' (e.g. '../../
def __init__(self, filename, _prefix=None, content_type=None):
# XXX doesn't use content_type yet
path = self.get_
filename = os.path.join(path, filename)
# Resolve any `up-level references' (i.e. '..')
if not os.path.
raise ValueError("No such file", self.filename)
Changes: submitter email, classification (bug+solution => feature+solution)