[Checkins] SVN: z3c.jbot/trunk/ Fixed layer specialization ordering.

Malthe Borch mborch at gmail.com
Mon Feb 8 06:54:55 EST 2010


Log message for revision 108868:
  Fixed layer specialization ordering.

Changed:
  U   z3c.jbot/trunk/CHANGES.txt
  U   z3c.jbot/trunk/z3c/jbot/utility.py

-=-
Modified: z3c.jbot/trunk/CHANGES.txt
===================================================================
--- z3c.jbot/trunk/CHANGES.txt	2010-02-08 05:27:18 UTC (rev 108867)
+++ z3c.jbot/trunk/CHANGES.txt	2010-02-08 11:54:54 UTC (rev 108868)
@@ -1,6 +1,10 @@
 Changes
 =======
 
+In next release...
+
+- Fixed layer specialization ordering. [malthe]
+
 0.5.3 (2009-10-31)
 ------------------
 

Modified: z3c.jbot/trunk/z3c/jbot/utility.py
===================================================================
--- z3c.jbot/trunk/z3c/jbot/utility.py	2010-02-08 05:27:18 UTC (rev 108867)
+++ z3c.jbot/trunk/z3c/jbot/utility.py	2010-02-08 11:54:54 UTC (rev 108868)
@@ -46,5 +46,6 @@
     layer = getLayer()
     gsm = component.getGlobalSiteManager()
 
-    for name, factory in gsm.adapters.lookupAll((layer,), interfaces.ITemplateManager):
+    for name, factory in reversed(
+        gsm.adapters.lookupAll((layer,), interfaces.ITemplateManager)):
         yield factory(layer)



More information about the checkins mailing list