[FIX] fields: get_nice_size fun, incomplete imported code from xrg branch
bzr revid: hmo@tinyerp.com-20091201102753-osxf3hbeecpph1f3
This commit is contained in:
+2
-2
@@ -590,9 +590,9 @@ def get_nice_size(a):
|
||||
if isinstance(y, (int,long)):
|
||||
size = y
|
||||
elif y:
|
||||
y = len(y)
|
||||
size = len(y)
|
||||
else:
|
||||
y = 0
|
||||
size = 0
|
||||
return (x, tools.human_size(size))
|
||||
|
||||
# ---------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user