Exemplo n.º 1
0
 def __init__(self, request, client_address, server):
     try:
         self.sqlite = DatabaseObject(DB_CONFIG['SQLITE'])
         self.table_name = 'proxy'
     except Exception, e:
         self.sqlite = ''
         logger.error('SQLite error: %s', e)
Exemplo n.º 2
0
 def __init__(self):
     self.sqlite = DatabaseObject(DB_CONFIG['SQLITE'])
     self.Validator = Validator()
     self.Crawler = Crawler()