add 'unit' key calculation
bzr revid: dharmesh247@gmail.com-20080825071226-5eovqe6kc8altmul
This commit is contained in:
parent
045e82c4d6
commit
421603085a
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue