[Zope-Checkins] CVS: Zope/lib/python/Products/PageTemplates - PageTemplateFile.py:1.28.4.2

Stuart Bishop zen at shangri-la.dropbear.id.au
Tue Dec 16 09:50:44 EST 2003


Update of /cvs-repository/Zope/lib/python/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv25028/lib/python/Products/PageTemplates

Modified Files:
      Tag: Zope-2_7-branch
	PageTemplateFile.py 
Log Message:
Merged into branch

Added getId() to Item_w__name__, since the one inherited from Item
has broken __name__ handling.

PageTemplateFile now using Item_w__name__ mixin, making getId()
and absolute_url() actually work.



=== Zope/lib/python/Products/PageTemplates/PageTemplateFile.py 1.28.4.1 => 1.28.4.2 ===
--- Zope/lib/python/Products/PageTemplates/PageTemplateFile.py:1.28.4.1	Sat Oct  4 14:57:57 2003
+++ Zope/lib/python/Products/PageTemplates/PageTemplateFile.py	Tue Dec 16 09:50:13 2003
@@ -29,8 +29,9 @@
 from ComputedAttribute import ComputedAttribute
 from Acquisition import aq_parent, aq_inner
 from App.config import getConfiguration
+from OFS.SimpleItem import Item_w__name__
 
-class PageTemplateFile(Script, PageTemplate, Traversable):
+class PageTemplateFile(Item_w__name__, Script, PageTemplate, Traversable):
     "Zope wrapper for filesystem Page Template using TAL, TALES, and METAL"
 
     meta_type = 'Page Template (File)'




More information about the Zope-Checkins mailing list