Ejemplo n.º 1
0
 def __init__(self):
     self.share_processes = {}
     self.dbhandler = dbhandler.getInstance()
     self.os_interaction = osinteraction.getInstance()
     self.globals = Globals()
     self.start_account_checking()
     if self.os_interaction.is_compiled():
         sys.stdout = open(self.os_interaction.get_app_data_path('application.out.log'), 'a')
         sys.stderr = open(self.os_interaction.get_app_data_path('application.error.log'), 'a')
Ejemplo n.º 2
0
def save_request(share):
    db_handler = dbhandler.getInstance()
    return db_handler.add_share(share)