1285 "__retrieve_%s();"%locstr for locstr in locstrs]), |
1285 "__retrieve_%s();"%locstr for locstr in locstrs]), |
1286 "publish_calls":"\n ".join([ #Call publish in reverse order |
1286 "publish_calls":"\n ".join([ #Call publish in reverse order |
1287 "__publish_%s();"%locstrs[i-1] for i in xrange(len(locstrs), 0, -1)]), |
1287 "__publish_%s();"%locstrs[i-1] for i in xrange(len(locstrs), 0, -1)]), |
1288 "init_calls":"\n ".join([ |
1288 "init_calls":"\n ".join([ |
1289 "init_level=%d; "%(i+1)+ |
1289 "init_level=%d; "%(i+1)+ |
1290 "if(res = __init_%s(argc,argv)){"%locstr + |
1290 "if((res = __init_%s(argc,argv))){"%locstr + |
1291 #"printf(\"%s\"); "%locstr + #for debug |
1291 #"printf(\"%s\"); "%locstr + #for debug |
1292 "return res;}" for i,locstr in enumerate(locstrs)]), |
1292 "return res;}" for i,locstr in enumerate(locstrs)]), |
1293 "cleanup_calls":"\n ".join([ |
1293 "cleanup_calls":"\n ".join([ |
1294 "if(init_level >= %d) "%i+ |
1294 "if(init_level >= %d) "%i+ |
1295 "__cleanup_%s();"%locstrs[i-1] for i in xrange(len(locstrs), 0, -1)]) |
1295 "__cleanup_%s();"%locstrs[i-1] for i in xrange(len(locstrs), 0, -1)]) |