mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Make Web's the REQUEST_ constants static attributes
This commit is contained in:
parent
ff55d7df75
commit
c6a2cab529
@ -44,6 +44,13 @@ class Web(object):
|
||||
"""
|
||||
The Web object is the OnionShare web server, powered by flask
|
||||
"""
|
||||
REQUEST_LOAD = 0
|
||||
REQUEST_DOWNLOAD = 1
|
||||
REQUEST_PROGRESS = 2
|
||||
REQUEST_OTHER = 3
|
||||
REQUEST_CANCELED = 4
|
||||
REQUEST_RATE_LIMIT = 5
|
||||
|
||||
def __init__(self, common, gui_mode, receive_mode=False):
|
||||
self.common = common
|
||||
|
||||
@ -90,12 +97,6 @@ class Web(object):
|
||||
('Server', 'OnionShare')
|
||||
]
|
||||
|
||||
self.REQUEST_LOAD = 0
|
||||
self.REQUEST_DOWNLOAD = 1
|
||||
self.REQUEST_PROGRESS = 2
|
||||
self.REQUEST_OTHER = 3
|
||||
self.REQUEST_CANCELED = 4
|
||||
self.REQUEST_RATE_LIMIT = 5
|
||||
self.q = queue.Queue()
|
||||
|
||||
self.slug = None
|
||||
|
Loading…
Reference in New Issue
Block a user