[CMF-checkins] CVS: CMF - actions_box.dtml:1.4.2.2 discussion_thread_view.dtml:1.1.2.1 folder_contents.dtml:1.3.2.2 folder_rename_form.dtml:1.2.2.2 search.dtml:1.3.2.1 showThreads.dtml:1.1.2.1
Martijn Pieters
mj@digicool.com
Mon, 9 Apr 2001 16:06:15 -0400 (EDT)
Update of /cvs-repository/CMF/CMFDefault/skins/generic
In directory korak:/tmp/cvs-serv28640/CMFDefault/skins/generic
Modified Files:
Tag: CMF-1_0-branch
actions_box.dtml discussion_thread_view.dtml
folder_contents.dtml folder_rename_form.dtml search.dtml
showThreads.dtml
Log Message:
Issue PTK(244)[], switch to getIcon
- Use getIcon instead of icon wherever possible
- When creating a catalog, use a 'getIcon' column instead of the 'icon'
column.
- Provide a conversion Python Script for existing catalogs.
--- Updated File actions_box.dtml in package CMF --
--- actions_box.dtml 2001/04/09 15:48:03 1.4.2.1
+++ actions_box.dtml 2001/04/09 20:06:13 1.4.2.2
@@ -38,7 +38,8 @@
<dtml-if object_actions>
<tr class="&dtml-AuthClass;">
<td class="ActionTitle">
- <dtml-let icon="_.getattr(obj, 'icon', '')"
+ <dtml-let getIcon="_.hasattr(obj, 'getIcon') and obj.getIcon()"
+ icon="getIcon or _.getattr(obj, 'icon', '')"
typ="_.getattr(obj, 'Type', '')"
objID="obj.getId()"
>
--- Updated File discussion_thread_view.dtml in package CMF --
--- discussion_thread_view.dtml 2001/02/23 14:24:09 1.1
+++ discussion_thread_view.dtml 2001/04/09 20:06:13 1.1.2.1
@@ -12,7 +12,7 @@
</dtml-if>
<dtml-tree branches="getReplies">
- <a href="&dtml-absolute_url;"><img border=0 src="<dtml-var SCRIPT_NAME><dtml-var icon>"></a>
+ <a href="&dtml-absolute_url;"><img border=0 src="<dtml-var SCRIPT_NAME><dtml-var getIcon>"></a>
<a href="&dtml-absolute_url;">&dtml-title;</a>,
by <dtml-var Creator>
on <dtml-var Date>
--- Updated File folder_contents.dtml in package CMF --
--- folder_contents.dtml 2001/04/09 15:48:03 1.3.2.1
+++ folder_contents.dtml 2001/04/09 20:06:13 1.3.2.2
@@ -79,7 +79,8 @@
and obj.isPortalContent"
methodID="folderish and '/folder_contents' or ( portalish
and '/view' or '' )"
- icon="_.getattr(obj, 'icon', 0)"
+ getIcon="_.hasattr(obj, 'getIcon') and obj.getIcon()"
+ icon="getIcon or _.getattr(obj, 'icon', '')"
>
<tr valign="top">
<td>
--- Updated File folder_rename_form.dtml in package CMF --
--- folder_rename_form.dtml 2001/04/09 15:48:03 1.2.2.1
+++ folder_rename_form.dtml 2001/04/09 20:06:13 1.2.2.2
@@ -11,9 +11,11 @@
<TABLE class="FormLayout">
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
+ <dtml-let getIcon="_.hasattr(this(), 'getIcon') and getIcon()"
+ icon="getIcon or _.getattr(this(), 'icon', '')">
<dtml-if icon>
<IMG SRC="&dtml-BASEPATH1;/&dtml-icon;" ALT="" BORDER="0">
- </dtml-if>
+ </dtml-if></dtml-let>
</TD>
<TD ALIGN="LEFT" VALIGN="TOP">
<dtml-var getId>
--- Updated File search.dtml in package CMF --
--- search.dtml 2001/03/02 20:16:45 1.3
+++ search.dtml 2001/04/09 20:06:13 1.3.2.1
@@ -26,9 +26,10 @@
</dtml-if>
<tr>
- <td><dtml-if icon>
+ <td>
+ <dtml-if getIcon>
<a href="&dtml-objURL;"><img
- src="&dtml-BASEPATH1;/&dtml-icon;" border="0"
+ src="&dtml-BASEPATH1;/&dtml-getIcon;" border="0"
alt="[&dtml.missing-Type;]"
title="[&dtml.missing-Type;]"></a>
</dtml-if>
--- Updated File showThreads.dtml in package CMF --
--- showThreads.dtml 2001/02/23 14:24:10 1.1
+++ showThreads.dtml 2001/04/09 20:06:13 1.1.2.1
@@ -14,14 +14,14 @@
<dtml-if expr="PARENTS[0].meta_type == 'Discussion Item'">
<dtml-tree name="id" branches="getReplies">
- <a href="&dtml-absolute_url;"><img border=0 src="<dtml-var SCRIPT_NAME><dtml-var icon>"></a>
+ <a href="&dtml-absolute_url;"><img border=0 src="<dtml-var SCRIPT_NAME><dtml-var getIcon>"></a>
<a href="&dtml-absolute_url;">&dtml-title;</a>,
by <dtml-var Creator>
on <dtml-var Date>
</dtml-tree>
<dtml-else>
<dtml-tree name="talkback" branches="getReplies">
- <a href="&dtml-absolute_url;"><img border=0 src="<dtml-var SCRIPT_NAME><dtml-var icon>"></a>
+ <a href="&dtml-absolute_url;"><img border=0 src="<dtml-var SCRIPT_NAME><dtml-var getIcon>"></a>
<a href="&dtml-absolute_url;">&dtml-title;</a>,
by <dtml-var Creator>
on <dtml-var Date>