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

Type YearlyDownTime

object --+        
         |        
      Base --+    
             |    
object --+   |    
         |   |    
Persistent --+    
             |    
    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 :)
Method Summary
  __init__(self)
  addDaily(self, dailydown)
add the daily down time for a day
  getDownTime(self, start, end)
get the down time in seconds over a date range, dates are DateTime
Inherited from Persistent: __class_init__, __getattribute__, bobobase_modification_time, locked_in_version, modified_in_version
Inherited from Persistent: __delattr__, __getstate__, __new__, __reduce__, __setattr__, __setstate__, _p_activate, _p_deactivate, _p_delattr, _p_getattr, _p_invalidate, _p_setattr
Inherited from Base: __getnewargs__
Inherited from object: __hash__, __reduce_ex__, __repr__, __str__

Class Variable Summary
Inherited from Persistent: _p_changed, _p_jar, _p_mtime, _p_oid, _p_serial, _p_state

Method Details

addDaily(self, dailydown)

add the daily down time for a day

getDownTime(self, start=None, end=None)

get the down time in seconds over a date range, dates are DateTime

Generated by Epydoc 2.1 on Thu Aug 16 09:55:15 2007 http://epydoc.sf.net