[Zope-CVS] CVS: Products/Basket - resource.py:1.4
Chris McDonough
chrism at plope.com
Wed Nov 9 16:43:58 EST 2005
Update of /cvs-repository/Products/Basket
In directory cvs.zope.org:/tmp/cvs-serv29122
Modified Files:
resource.py
Log Message:
Fix DTMLResource with/without '.dtml' prefix schizophrenia.
=== Products/Basket/resource.py 1.3 => 1.4 ===
--- Products/Basket/resource.py:1.3 Wed Nov 9 16:26:53 2005
+++ Products/Basket/resource.py Wed Nov 9 16:43:28 2005
@@ -170,14 +170,13 @@
self.ZBindings_edit(defaultBindings)
self._setFuncSignature()
- path = path + '.dtml'
-
#from ClassicHTMLFile.__init__(self, name, _prefix, **kw)
+ path_with_ext = path + '.dtml'
if not kw.has_key('__name__'):
kw['__name__'] = os.path.basename(path)
#from FileMixin.__init__(self, *args, **kw)
- self.raw = (module, path)
+ self.raw = (module, path_with_ext)
self.initvars(None, kw)
self.setName(kw['__name__'])
self.zipped = is_zipped(module)
More information about the Zope-CVS
mailing list