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

Lennart Regebro regebro at nuxeo.com
Fri Sep 3 10:52:02 EDT 2004


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

Modified Files:
      Tag: regebro-collector_144-branch
	utils.py 
Log Message:
Made a change so that tool icons can reside in subdirectories (Collector #144).


=== Products/CMFCore/utils.py 1.59 => 1.59.4.1 ===
--- Products/CMFCore/utils.py:1.59	Thu Aug 12 11:07:39 2004
+++ Products/CMFCore/utils.py	Fri Sep  3 10:52:01 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