add 'unit' key calculation

bzr revid: dharmesh247@gmail.com-20080825071226-5eovqe6kc8altmul
This commit is contained in:
dharmesh rathod 2008-08-25 12:42:26 +05:30
parent 045e82c4d6
commit 421603085a
1 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,8 @@ def attr_get(node, attrs, dict={}):
res[key] = bool_get(node.getAttribute(key))
elif dict[key]=='int':
res[key] = int(node.getAttribute(key))
elif dict[key]=='unit':
res[key] = unit_get(node.getAttribute(name))
return res
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: