ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> zope-checkins
zope-checkins
[Zope-Checkins] SVN: Zope/branches/2.12/ Avoid possible errors on test tear-down in Products.Five.fiveconfigure's cleanUp() function if Products.meta_types has not been set
by Martin Aspeli other posts by this author
Nov 6 2009 12:21AM messages near this date
[Zope-Checkins] SVN: Zope/branches/2.12/ Include bytes limited cache size in the cache parameters ZMI screen | [Zope-Checkins] SVN: Zope/branches/2.12/ open for Zope 2.12.2-dev
Log message for revision 105503:
  Avoid possible errors on test tear-down in Products.Five.fiveconfigure's cleanUp() functio
n if Products.meta_types has not been set

Changed:
  U   Zope/branches/2.12/doc/CHANGES.rst
  U   Zope/branches/2.12/src/Products/Five/fiveconfigure.py

-=-
Modified: Zope/branches/2.12/doc/CHANGES.rst
===================================================================
--- Zope/branches/2.12/doc/CHANGES.rst	2009-11-06 06:23:44 UTC (rev 105502)
+++ Zope/branches/2.12/doc/CHANGES.rst	2009-11-06 08:21:09 UTC (rev 105503)
@@ -11,8 +11,9 @@
 Bugs Fixed
 ++++++++++
 
+- Avoid possible errors on test tear-down in Products.Five.fiveconfigure's
+  cleanUp() function if Products.meta_types has not been set
 
-
 Zope 2.12.1 (2009/11/02)
 ------------------------
 

Modified: Zope/branches/2.12/src/Products/Five/fiveconfigure.py
===================================================================
--- Zope/branches/2.12/src/Products/Five/fiveconfigure.py	2009-11-06 06:23:44 UTC (rev 10550
2)
+++ Zope/branches/2.12/src/Products/Five/fiveconfigure.py	2009-11-06 08:21:09 UTC (rev 10550
3)
@@ -225,7 +225,7 @@
     _register_monkies = []
 
     global _meta_type_regs
-    Products.meta_types = tuple([ info for info in Products.meta_types
+    Products.meta_types = tuple([ info for info in getattr(Products, 'meta_types', [])
                                   if info['name'] not in _meta_type_regs ])
     _meta_type_regs = []
 

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@[...].org
https://mail.zope.org/mailman/listinfo/zope-checkins

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved