Zope bug (w/ patch): hard coded Unix separator in special_dtml.py
Hello Zopistas, When trying to figure out why our Product zzLocale was behaving strangely under Windows, I found that the raw attribute of management screens was weird (had a unix separator '/' before the template name), and I traced it back to what I believe is a bug in Zope: In lib/python/App/special_dtml.py, we have:
def __init__(self,name,_prefix=None, **kw): if _prefix is None: _prefix=SOFTWARE_HOME elif type(_prefix) is not type(''): _prefix=Common.package_home(_prefix)
args=(self, '%s/%s.dtml' % (_prefix,name))
^ hard-coded unix separator
if not kw.has_key('__name__'): kw['__name__']=name apply(HTMLFile.inheritedAttribute('__init__'),args,kw)
I think this should rather be (tested and working patch):
args=(self, os.path.join(_prefix, name + '.dtml'))
Does that sound right to you? If no one disagrees, I'll fill a bug report w/ patch in the Collector. -- Yves-Eric Martin Digital Garage Inc. yemartin@garage.co.jp
On Mon, 24 Jul 2000 19:23:56 +0100 Chris Withers <chrisw@nipltd.com> wrote:
Sounds great, is it in the collector yet?
Yes, I filled a bug report yesterday. It's under number 1453. -- Yves-Eric Martin Digital Garage Inc. yemartin@garage.co.jp
participants (2)
-
Chris Withers -
Yves-Eric Martin