Package ZenModel :: Module ZenStatus :: Class YearlyDownTime
[hide private]
[frames] | no frames]

Class YearlyDownTime

source code

           object --+        
                    |        
persistent.Persistent --+    
                        |    
           object --+   |    
                    |   |    
  ExtensionClass.Base --+    
                        |    
   Persistence.Persistent --+
                            |
                           YearlyDownTime

this would take less space as a dict with but it would take longer to query not sure which is better going with faster and bigger :)

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
addDaily(self, dailydown)
add the daily down time for a day
source code
 
getDownTime(self, start=None, end=None)
get the down time in seconds over a date range, dates are DateTime
source code

Inherited from Persistence.Persistent: __class_init__, __getattribute__, bobobase_modification_time, locked_in_version, modified_in_version

Inherited from persistent.Persistent: __delattr__, __getstate__, __new__, __reduce__, __setattr__, __setstate__

Inherited from persistent.Persistent (private): _p_activate, _p_deactivate, _p_delattr, _p_getattr, _p_invalidate, _p_setattr

Inherited from ExtensionClass.Base: __getnewargs__

Inherited from object: __hash__, __reduce_ex__, __repr__, __str__

Properties [hide private]

Inherited from persistent.Persistent (private): _p_changed, _p_jar, _p_mtime, _p_oid, _p_serial, _p_state

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)