can you pl. add this to utils.py as there is no function to decode base36
created by to36

def from36(q):
    letters="0123456789abcdefghijklmnopqrstuvwxyz"
    i = 0
    for pos, digit in enumerate(q[-1::-1]):
        i += letters.find(digit) * pow(36, pos)
    return i


thanks a lot!

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to