Trees | Indices | Help |
|
---|
|
1 ########################################################################### 2 # 3 # This program is part of Zenoss Core, an open source monitoring platform. 4 # Copyright (C) 2007, Zenoss Inc. 5 # 6 # This program is free software; you can redistribute it and/or modify it 7 # under the terms of the GNU General Public License version 2 as published by 8 # the Free Software Foundation. 9 # 10 # For complete information please visit: http://www.zenoss.com/oss/ 11 # 12 ########################################################################### 13 import Globals 14 15 from Products.ZenUtils.Utils import convToUnits 16 17 UNAVAILABLE = 'N/A' 1820 if partial is None or total is None: 21 return None 22 if not total: 23 return None 24 return partial * 100 / total25 26 31 32 33 from AccessControl import ClassSecurityInfo 34 3537 __allow_access_to_unprotected_subobjects__ = 1 387740 self.values = kw.copy()41 4244 return str(self.values)45 46 49 5052 return self.values[name]53 5658 return percent(partial, total)5961 return percentString(n, decimals)62 67 72
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Thu Oct 25 16:28:53 2007 | http://epydoc.sourceforge.net |