[CMF-checkins] CVS: Products/CMFCore - utils.py:1.60

Lennart Regebro regebro at nuxeo.com
Fri Sep 3 10:55:36 EDT 2004


Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv14255

Modified Files:
	utils.py 
Log Message:
Tool icons can now reside in subdirectories (Issue #144)


=== Products/CMFCore/utils.py 1.59 => 1.60 ===
--- Products/CMFCore/utils.py:1.59	Thu Aug 12 11:07:39 2004
+++ Products/CMFCore/utils.py	Fri Sep  3 10:55:31 2004
@@ -431,9 +431,14 @@
             icon = self.icon
             )
 
+        if self.icon:
+            icon = os_path.split(self.icon)[1]            
+        else:
+            icon = None
+        
         for tool in self.tools:
             tool.__factory_meta_type__ = self.meta_type
-            tool.icon = 'misc_/%s/%s' % (self.product_name, self.icon)
+            tool.icon = 'misc_/%s/%s' % (self.product_name, icon)
 
 InitializeClass( ToolInit )
 



More information about the CMF-checkins mailing list