def __init__(self, pool, cr):
     super(SmileLog, self).__init__(pool, cr)
     cr.execute("select relname from pg_class where relname='smile_log'")
     if cr.rowcount:
         from db_handler import SmileDBLogger
         logger = SmileDBLogger(cr.dbname, '', 0, 0)
         logger.info('OpenERP server start')
Beispiel #2
0
 def __init__(self, pool, cr):
     super(SmileLog, self).__init__(pool, cr)
     cr.execute("select relname from pg_class where relname='smile_log'")
     if cr.rowcount:
         from db_handler import SmileDBLogger
         logger = SmileDBLogger(cr.dbname, '', 0, 0)
         logger.info('OpenERP server start')
 def __init__(self, pool, cr):
     super(SmileLog, self).__init__(pool, cr)
     cr.execute("select relname from pg_class where relname='smile_log_seq'")
     res = cr.fetchone()
     if not res:
         cr.execute("create sequence smile_log_seq")
     else:
         from db_handler import SmileDBLogger
         logger = SmileDBLogger(cr.dbname, '', 0, 0)
         logger.info('OpenERP server start')
 def __init__(self, pool, cr):
     super(SmileLog, self).__init__(pool, cr)
     cr.execute(
         "select relname from pg_class where relname='smile_log_seq'")
     res = cr.fetchone()
     if not res:
         cr.execute("create sequence smile_log_seq")
     else:
         from db_handler import SmileDBLogger
         logger = SmileDBLogger(cr.dbname, '', 0, 0)
         logger.info('OpenERP server start')