[Zope-CVS] CVS: Products/Basket - utils.py:1.19

Chris McDonough chrism at plope.com
Wed Nov 9 15:12:52 EST 2005


Update of /cvs-repository/Products/Basket
In directory cvs.zope.org:/tmp/cvs-serv32686

Modified Files:
	utils.py 
Log Message:
Untabify, fix tests broken by icon rename, fix name error looking for "basename" on os when registering an icon.


=== Products/Basket/utils.py 1.18 => 1.19 ===
--- Products/Basket/utils.py:1.18	Wed Nov  9 14:39:24 2005
+++ Products/Basket/utils.py	Wed Nov  9 15:12:21 2005
@@ -107,7 +107,6 @@
                              (productname, f), packagename)
 
         if old is not None:
-            assert hasattr(self.app, '_manage_remove_product_meta_type')
             self.app._manage_remove_product_meta_type(product)
             products._delObject(productname)
             for id, v in old.objectItems():
@@ -213,7 +212,7 @@
 
         if icon and instance_class is not None:
             setattr(instance_class, 'icon', 'misc_/%s/%s' %
-                    (product.id, os.basename(icon)))
+                    (product.id, os.path.basename(icon)))
 
         if permissions:
             self.register_additional_permissions(permissions)



More information about the Zope-CVS mailing list