CVS: Products/Basket - utils.py:1.19

Chris McDonough <[email protected]>
Newsgroups gmane.comp.web.zope.public-cvs
Message-ID <[email protected]>
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)

_______________________________________________
Zope-CVS maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zope-cvs

Zope CVS instructions: http://dev.zope.org/CVS
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.