def value(self): global form val = getformslot(self.id) if val == None: return [] rmap = self.rmap or self.items if not isinstance(val, list): return [rmap[int(val)]] return [rmap[int(x)] for x in val]
def value(self): global form val = getformslot(self.id) if val == None: return self.default rmap = self.rmap or self.items try: return rmap[int(val)] except: return self.default
def value(self): v = getformslot(self.id) if v == None: return self.default if isinstance(v, str): return smart_quote_translate(v) if isinstance(v, long): return str(v) if isinstance(v, int): return str(v) if isinstance(v, float): return str(v) return self.default
def value(self): v = getformslot(self.id) if v==None: return self.default if isinstance(v, str): return smart_quote_translate(v) if isinstance(v, long): return str(v) if isinstance(v, int): return str(v) if isinstance(v, float): return str(v) return self.default
def value(self): return self.override_value or getformslot( self.id) or self.initial_value
def value(self): return self.override_value or getformslot(self.id) or self.initial_value