Inverting order of plugin calls in retrieve and publish
authorlaurent
Tue, 21 Feb 2012 22:36:35 +0100
changeset 694 fb55fbee202c
parent 693 96fcadb6a7a0
child 695 f378fe028f6c
child 696 9265781619b7
Inverting order of plugin calls in retrieve and publish
plugger.py
--- a/plugger.py	Sun Feb 19 02:20:24 2012 +0100
+++ b/plugger.py	Tue Feb 21 22:36:35 2012 +0100
@@ -1410,9 +1410,9 @@
                       "void __retrieve_%(s)s(void);\n"+
                       "void __publish_%(s)s(void);")%{'s':locstr} for locstr in locstrs]),
                 "retrieve_calls":"\n    ".join([
-                      "__retrieve_%s();"%locstr for locstr in locstrs]),
+                      "__retrieve_%s();"%locstrs[i-1] for i in xrange(len(locstrs), 0, -1)]),
                 "publish_calls":"\n    ".join([ #Call publish in reverse order
-                      "__publish_%s();"%locstrs[i-1] for i in xrange(len(locstrs), 0, -1)]),
+                      "__publish_%s();"%locstr for locstr in locstrs]),
                 "init_calls":"\n    ".join([
                       "init_level=%d; "%(i+1)+
                       "if((res = __init_%s(argc,argv))){"%locstr +