Lines Matching refs:val
122 def yesno(self, val):
125 if type(val) == type(True):
126 if val == True:
128 elif type(val) == type(''):
129 r = val.lower()
134 def truefalse(self, val):
137 if type(val) == type(True):
138 if val == True:
140 elif type(val) == type(''):
141 r = val.lower()
212 val = list[0]
213 if val== 'all':
216 i = int(val) # except if an illegal numeric
220 return val
270 val = db[prop]
272 val = None
273 if val == None or val == '':
276 val = self.yesno(val)
277 data += "%s\t%s\n" % (tag, val)
295 val = db[prop]
297 val = None
298 if val == None or val == '':
301 val = self.yesno(val)
302 self.traceit(' val= ', val)
303 data += "%s\t%s\t%s\n" % (tag, map, val)
422 for (pg, prop, defval, val) in nprop:
424 if val == defval[1] or val == '':
427 val = self.truefalse(val)
428 self.traceit(' adding: ', pg, prop, ptype, val)
436 if not self.add_prop_val(pg, prop, ptype, val):
437 self.err_list(('Unable to add:', prop, ptype, val))
439 self.traceit(' added: ', pg, prop, ptype, val)