def maketrans(fromstr, tostr):
    if len(fromstr) != len(tostr):
        raise ValueError, "maketrans arguments must have same length"
    global _idmapL
    if not _idmapL:
        _idmapL = list(_idmap)
    L = _idmapL[:]
    fromstr = map(ord, fromstr)
    for i in range(len(fromstr)):
        L[fromstr[i]] = tostr[i]
    return ''.join(L)



####################################################################
version of the reversion register function that only registers drafts and
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/lib/string.py/maketrans--crossover with--dataset/ETHPy150Open divio/django-cms/cms/utils/reversion_hacks.py/register_draft_only