[Zope-Checkins] SVN: Zope/trunk/src/OFS/metaconfigure.py No longer store state in Products._registered_packages
Hanno Schlichting
hannosch at hannosch.eu
Sun Jun 27 09:08:31 EDT 2010
Log message for revision 113928:
No longer store state in Products._registered_packages
Changed:
U Zope/trunk/src/OFS/metaconfigure.py
-=-
Modified: Zope/trunk/src/OFS/metaconfigure.py
===================================================================
--- Zope/trunk/src/OFS/metaconfigure.py 2010-06-27 13:05:55 UTC (rev 113927)
+++ Zope/trunk/src/OFS/metaconfigure.py 2010-06-27 13:08:31 UTC (rev 113928)
@@ -14,6 +14,7 @@
logger = logging.getLogger('OFS')
_register_monkies = []
+_registered_packages = []
_meta_type_regs = []
@@ -72,10 +73,8 @@
def get_registered_packages():
- packages = getattr(Products, '_registered_packages', None)
- if packages is None:
- packages = Products._registered_packages = []
- return packages
+ global _registered_packages
+ return _registered_packages
def _registerPackage(module_, init_func=None):
More information about the Zope-Checkins
mailing list