- exec "from Screens." + str(attrs.get('module')) + " import *"
- self.wizard[self.lastStep]["config"]["screen"] = eval(str(attrs.get('screen')))
- if (attrs.has_key('args')):
- print "has args"
- self.wizard[self.lastStep]["config"]["args"] = str(attrs.get('args'))
- self.wizard[self.lastStep]["config"]["type"] = str(attrs.get('type'))
+ type = str(attrs.get('type'))
+ self.wizard[self.lastStep]["config"]["type"] = type
+ if type == "ConfigList" or type == "standalone":
+ try:
+ exec "from Screens." + str(attrs.get('module')) + " import *"
+ except:
+ exec "from " + str(attrs.get('module')) + " import *"
+
+ self.wizard[self.lastStep]["config"]["screen"] = eval(str(attrs.get('screen')))
+ if (attrs.has_key('args')):
+ #print "has args"
+ self.wizard[self.lastStep]["config"]["args"] = str(attrs.get('args'))
+ elif type == "dynamic":
+ self.wizard[self.lastStep]["config"]["source"] = str(attrs.get('source'))
+ if (attrs.has_key('evaluation')):
+ self.wizard[self.lastStep]["config"]["evaluation"] = str(attrs.get('evaluation'))