[CMF-checkins] CVS: Products/CMFDefault/skins/zpt_generic - TitleOrId.py:1.2

Yvo Schubbe y.2004_ at wcm-solutions.de
Tue Aug 3 09:36:55 EDT 2004


Update of /cvs-repository/Products/CMFDefault/skins/zpt_generic
In directory cvs.zope.org:/tmp/cvs-serv6065/CMFDefault/skins/zpt_generic

Modified Files:
	TitleOrId.py 
Log Message:
- removed deprecated dontCall parameter


=== Products/CMFDefault/skins/zpt_generic/TitleOrId.py 1.1 => 1.2 ===
--- Products/CMFDefault/skins/zpt_generic/TitleOrId.py:1.1	Tue Jul  6 18:04:50 2004
+++ Products/CMFDefault/skins/zpt_generic/TitleOrId.py	Tue Aug  3 09:36:55 2004
@@ -1,13 +1,9 @@
-## Script (Python) "TitleOrId"
-##parameters=dontCall=0
+##parameters=
 ##title=Return Title or getId
-if dontCall:
-    title = context.Title
-    id = context.id
-else:
-    title = context.Title()
-    id = context.getId()
+##
+title = context.Title()
+id = context.getId()
 if title:
-    return title 
+    return title
 else:
-    return id 
+    return id



More information about the CMF-checkins mailing list