[CMF-checkins] CVS: Products/CMFCore - TypesTool.py:1.74.2.1

Yvo Schubbe y.2004_ at wcm-solutions.de
Thu Aug 26 04:03:40 EDT 2004


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

Modified Files:
      Tag: CMF-1_5-branch
	TypesTool.py 
Log Message:
Oops! Fixed broken except.


=== Products/CMFCore/TypesTool.py 1.74 => 1.74.2.1 ===
--- Products/CMFCore/TypesTool.py:1.74	Thu Aug 12 11:07:39 2004
+++ Products/CMFCore/TypesTool.py	Thu Aug 26 04:03:40 2004
@@ -435,7 +435,7 @@
             if not perms or View in perms:
                 try:
                     viewmethod = action.action(context).strip()
-                except AttributeError, TypeError:
+                except (AttributeError, TypeError):
                     break
                 if viewmethod.startswith('/'):
                     viewmethod = viewmethod[1:]
@@ -451,7 +451,7 @@
         for action in ordered:
             try:
                 defmethod = action.action(context).strip()
-            except AttributeError, TypeError:
+            except (AttributeError, TypeError):
                 break
             if defmethod.startswith('/'):
                 defmethod = defmethod[1:]



More information about the CMF-checkins mailing list