Author: duncan
Date: Tue Oct  9 16:27:18 2007
New Revision: 9945

Log:
Strange that menu.__str__ should cause a crash in shopping cart
Fix applied


Modified:
   branches/rel-1/freevo/src/menu.py
   branches/rel-1/freevo/src/plugins/shoppingcart.py

Modified: branches/rel-1/freevo/src/menu.py
==============================================================================
--- branches/rel-1/freevo/src/menu.py   (original)
+++ branches/rel-1/freevo/src/menu.py   Tue Oct  9 16:27:18 2007
@@ -69,7 +69,7 @@
         """
         s = '"'+self.name+'"'
         if hasattr(self, 'action'):    s += ' action=%s' % self.action
-        if hasattr(self, 'arg') and self.arg: s += ' arg=%s' % self.arg[0]
+        #if hasattr(self, 'arg') and self.arg: s += ' arg=%s' % self.arg[0]
         if hasattr(self, 'type'):      s += ' type=%s' % self.type
         if hasattr(self, 'image'):     s += ' image=%s' % self.image
         if hasattr(self, 'icon'):      s += ' icon=%s' % self.icon

Modified: branches/rel-1/freevo/src/plugins/shoppingcart.py
==============================================================================
--- branches/rel-1/freevo/src/plugins/shoppingcart.py   (original)
+++ branches/rel-1/freevo/src/plugins/shoppingcart.py   Tue Oct  9 16:27:18 2007
@@ -135,10 +135,7 @@
             # only activate this for directory items
             return []
 
-        try:
-            _debug_('item=%s, type=%s, cart=%s' % (item, item.type, 
self.cart), 2)
-        except:
-            pass
+        _debug_('item=%s, type=%s, cart=%s' % (item, item.type, self.cart), 2)
         if item.type == 'dir':
             if len(self.cart) > 0:
                 for c in self.cart:

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to