/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Classes | Functions | Variables
DybDbi::mapr Namespace Reference

Classes

class  Mapr
class  MaprMonitor
class  Vrec

Functions

def check

Variables

tuple log = logging.getLogger(__name__)
tuple vr = Vrec(kls)
 mp = vr.map

Function Documentation

def DybDbi::mapr::check (   kls)

Definition at line 222 of file mapr.py.

00223               :
00224 
00225     sqlcontext, task, subsite = "1=1", -1, -1   ## wideopen DBI querying 
00226     vrb = kls.GetTableProxy().MakeValidityRecBuilder( sqlcontext, subsite, task )
00227     mpr = Mapr()      
00228 
00229     gDbi.level = "WARNING" 
00230 
00231     for vrec in sorted(vrb, key=lambda _:_.seqno): 
00232         mpr.vrec = vrec      ## update SvcMode of the mapper
00233 
00234         rpt = kls.Rpt().Clone()
00235         rpt.ctx( validityrec=vrec )     
00236         n = len(rpt)
00237         log.info("seqno %s count %s digest %s" % ( vrec.seqno, n, rpt.digest  ))
00238 
00239         with Rollback(vrec.insertdate):
00240             for i,row in enumerate(rpt):
00241                 sid = row.sensorid
00242                 cid = mpr(sid)
00243                 log.debug(" %-4s sensorid %-25s channelid %-25s " % ( i+1, sid.asString(), cid.asString() )) 
00244                 pass
00245         pass
00246  
00247 


Variable Documentation

Definition at line 8 of file mapr.py.

tuple DybDbi::mapr::vr = Vrec(kls)

Definition at line 289 of file mapr.py.

DybDbi::mapr::mp = vr.map

Definition at line 291 of file mapr.py.

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:57:24 for DybDbi by doxygen 1.7.4