Esempio n. 1
0
    def __init__(self, dbconn=None, **kw):
        HTMLWriter.__init__(self)

        self.master = MasterDB(dbconn=dbconn) 
        # self.master.db.get_cursor()
        self.dbconn = self.master.db.conn
        
        self.kw  = {'form_pv':'', 'pv':'', 'inst_id':-1,'submit':''}
        self.kw.update(kw)
Esempio n. 2
0
    def __init__(self,dbconn=None,**kw):

        HTMLWriter.__init__(self)
        self.arch   = Instruments(dbconn=dbconn)
        self.dbconn  = self.arch.dbconn
        self.kw  = {'station_sel':'', 'newstation':'',
                    'station':'', 'instrument':'','pv':'',
                    'station_add':'','inst_id':-1,
                    'submit': '' }