- self["config"].instance.setZPosition(1)
- if (self.wizard[self.currStep]["config"]["screen"] != None):
- if self.wizard[self.currStep]["config"]["type"] == "standalone":
- print "Type is standalone"
- self.session.openWithCallback(self.ok, self.wizard[self.currStep]["config"]["screen"])
+ def afterAsyncCode(self):
+ if not self.updateValues in self.onShown:
+ self.onShown.append(self.updateValues)
+
+ if self.codeafter:
+ if self.wizard[self.prevStep]["nextstep"] is not None:
+ self.currStep = self.getStepWithID(self.wizard[self.prevStep]["nextstep"])
+ if self.gotoStep is not None:
+ self.currStep = self.getStepWithID(self.gotoStep)
+ self.currStep += 1
+ self.updateValues()
+ print "Now: " + str(self.currStep)
+ else:
+ if self.showList:
+ print "showing list,", self.currStep
+ for renderer in self.renderer:
+ rootrenderer = renderer
+ while renderer.source is not None:
+ print "self.list:", self["list"]
+ if renderer.source is self["list"]:
+ print "setZPosition"
+ rootrenderer.instance.setZPosition(1)
+ renderer = renderer.source
+
+ #self["list"].instance.setZPosition(1)
+ self.list = []
+ if (self.wizard[self.currStep].has_key("dynamiclist")):
+ print "dynamic list, calling", self.wizard[self.currStep]["dynamiclist"]
+ newlist = eval("self." + self.wizard[self.currStep]["dynamiclist"] + "()")
+ #self.wizard[self.currStep]["evaluatedlist"] = []
+ for entry in newlist:
+ #self.wizard[self.currStep]["evaluatedlist"].append(entry)
+ self.list.append(entry)
+ #del self.wizard[self.currStep]["dynamiclist"]
+ if (len(self.wizard[self.currStep]["list"]) > 0):
+ #self["list"].instance.setZPosition(2)
+ for x in self.wizard[self.currStep]["list"]:
+ self.list.append((self.getTranslation(x[0]), x[1]))
+ self.wizard[self.currStep]["evaluatedlist"] = self.list
+ self["list"].list = self.list
+ self["list"].index = 0