decode_id

This commit is contained in:
j 2011-11-06 20:36:35 +01:00
commit 0feace7a8b
9 changed files with 39 additions and 14 deletions

View file

@ -4,7 +4,14 @@
from decimal import Decimal
import re
import unicodedata
import ox
def decode_id(id):
try:
id = ox.from26(id)
except:
id = 0
return id
def parse_decimal(string):
string = string.replace(':', '/')