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

In This Package:

Public Member Functions
Scraper::rpchv::RpcHvFaker Class Reference
Inheritance diagram for Scraper::rpchv::RpcHvFaker:
Inheritance graph
[legend]
Collaboration diagram for Scraper::rpchv::RpcHvFaker:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def fake

Detailed Description

Creates fake instances and inserts them into sourcedb   

Definition at line 168 of file rpchv.py.


Member Function Documentation

def Scraper::rpchv::RpcHvFaker::fake (   self,
  inst,
  id,
  dt 
)
Invoked from base class call method, 
set attributes of source instance to form a fake 

:param inst: source instance
:param id: id to assign to the instance instance

Definition at line 172 of file rpchv.py.

00173                                   :
00174         """
00175         Invoked from base class call method, 
00176         set attributes of source instance to form a fake 
00177 
00178         :param inst: source instance
00179         :param id: id to assign to the instance instance
00180         """
00181 #         fakefn=lambda (l,c,r),qty:l*100 + c*10 + r if qty == "voltage" else 1 
00182 #         for k,v in inst.asdict.items():
00183 #             if k in 'id P_id'.split():
00184 #                  setattr( inst, k, id )
00185 #             elif k in 'date_time P_date_time'.split():
00186 #                  setattr( inst, k, dt )
00187 #             else:
00188 #                 qty,kk = ('pw',k[2:]) if k.startswith('P_') else ('voltage',k)
00189 #                 lcr = self.lcr_matcher(kk)    
00190 #                 setattr( inst , k, fakefn( lcr, qty) )
00191 
00192 
00193 # if __name__ == '__main__':
00194 #     pass
00195 

The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:50:03 for Scraper by doxygen 1.7.4