X-Git-Url: http://git.maemo.org/git/?p=gonvert;a=blobdiff_plain;f=src%2Funit_data.py;h=5c75c57242d0390559ad7e0b31766cedc493e0a6;hp=9cc90a438d55f7557cee4cb07763fbff5521fab6;hb=e62498c9c596588836ea7e08c83b6b5c21a43fbb;hpb=bf4bf9894c9bdb13083a2ca05a808c03f670f23b diff --git a/src/unit_data.py b/src/unit_data.py index 9cc90a4..5c75c57 100644 --- a/src/unit_data.py +++ b/src/unit_data.py @@ -2208,6 +2208,14 @@ def get_units_from_category(category): return units +def get_base_unit(categoryName): + return UNIT_DESCRIPTIONS[categoryName][".base_unit"] + + +def get_base_unit_from_category(category): + return category[".base_unit"] + + future_dic = { _(u"Wire Gauge"): { ".base_unit": "circular mils",