Exemple #1
0
 def __init__(self):
     QObject.__init__(self)
     self._localAPI = TaskhiveAPI()
Exemple #2
0
 def __init__(self):
     QObject.__init__(self)
     self.filters = []
     self._paused = False
     self._localAPI = TaskhiveAPI()
Exemple #3
0
 def __init__(self, task_JSON):
     QObject.__init__(self)
     self._localAPI = TaskhiveAPI()
     self._JSON = task_JSON
Exemple #4
0
 def __init__(self, task_id, from_add=None):
     QObject.__init__(self)
     self._localAPI = TaskhiveAPI()
     self.task_id = task_id
     self.from_add = from_add
Exemple #5
0
 def __init__(self, task_id):
     QObject.__init__(self)
     self._localAPI = TaskhiveAPI()
     self, task_id = task_id
Exemple #6
0
  "task_payment_rate_type":"task",
  "task_payment_methods":[ "BTC", "DOGE"],
  "task_deadline":1482710400,
  "task_license":"CC BY 4.0",
  "task_escrow_required":1,
  "task_escrow_recommendation":"BITCOIN-PUBKEY",
  "task_address":"TEMP-BM-ADDRESS",
  "task_owner":"BITCOIN-PUBKEY",
  "task_id":"YsBGsF3dc9But9GN5mXOTwEFIZWZ8=",
  "task_entropy":"LATEST-BLOCKCHAIN-HASH",
  "task_expiration":1482710400
  }'''

if __name__ == "__main__":
    app = Taskhive(sys.argv)
    API = TaskhiveAPI()
    BitMessageAPI = API.run_bitmessage()
    time.sleep(10)
    BitMessage = API.create_bitmessage_api()
    if BitMessage in ['invalid keys_file settings', 'keyfile does not exist']:
        API.create_settings()
        BitMessage = API.create_bitmessage_api()
        BitMessageAPI = API.run_bitmessage()
    API.setup_channels()
    if API.run_bm.poll() is None:
        API.find_running_bitmessage_port()
    connections, _, _, _ = API.client_connections()
    # API.create_posting(test_json)
    # API.generate_and_store_keys()
    engine = QQmlApplicationEngine()