def translate(self, table):
        l = []
        for c in self:
            if ord(c) in table:
                val = table[ord(c)]
                if val is None:
                    continue
                elif isinstance(val, unicode):
                    l.append(val)
                else:
                    l.append(chr(val))
            else:
                l.append(c)
        return ''.join(l)
Build HTML attributes for the widget.
dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/types/newstr.py/newstr.translate--crossover with--dataset/ETHPy150Open yourlabs/django-autocomplete-light/src/dal/widgets.py/WidgetMixin.build_attrs