1 '''
2 Module with the server's communication.
3 '''
4
5 from decorators import i18n
6 from main.model import Computer
7 import web
8 import threading
12 '''
13 A instance of this class is returned by send_job.
14 If everything is ok the code is 200. If instead the request couln't
15 be executed by the client, the code will be different to 200 and
16 explication error will be in response.
17 '''
18
20 self.code = code
21 self.response = response
22
25 '''
26 Raise when you want to send a job to a computer that it's not
27 in the data base
28 '''
29 pass
30
49
53 '''
54 Sends a http request to the ip with a id.
55 If something was wrong the job will be deleted from the data base.
56 '''
57
58 return Response(200, '')
59