else:
self.configElements[key] = value
+ def getResolvedKey(self, key):
+ str = self.configElements[key]
+ if len(str):
+ pos = str.find('*')
+ if pos != -1:
+ str = str[pos+1:]
+ pos = str.find('*')
+ if pos != -1:
+ return str[:pos]
+ return str
+ return None
+
def save(self):
if self.changed == 0: #no changes, so no write to disk needed
return
returnValue = _(self.parent.vals[self.parent.value])
if not isinstance(returnValue, str):
- returnValue = returnValue[0]
+ returnValue = returnValue[1]
# FIXME: it's not really nice to translate this here.
# however, configSelections are persistent.
if (type == "IP"):
return (("."), [(0,255),(0,255),(0,255),(0,255)], "")
# configsequencearg.get ("MAC")
+ if (type == "POSITION"):
+ return ((","), [(0,args[0]),(0,args[1]),(0,args[2]),(0,args[3])], "")
if (type == "MAC"):
return ((":"), [(1,255),(1,255),(1,255),(1,255),(1,255),(1,255)], "")
# configsequencearg.get ("CLOCK")