mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-25 10:42:58 -03:00
Rename BaseModeWeb to SendBaseModeWeb, because this code is only actually shared by send modes (Share and Website, not Receive)
This commit is contained in:
parent
328b1500ab
commit
7b2b8c2284
4 changed files with 8 additions and 8 deletions
|
@ -8,7 +8,7 @@ from werkzeug.utils import secure_filename
|
|||
from .. import strings
|
||||
|
||||
|
||||
class ReceiveModeWeb(object):
|
||||
class ReceiveModeWeb:
|
||||
"""
|
||||
All of the web logic for receive mode
|
||||
"""
|
||||
|
|
|
@ -6,12 +6,12 @@ from flask import Response, request, render_template, make_response, send_from_d
|
|||
|
||||
from .. import strings
|
||||
|
||||
class BaseModeWeb(object):
|
||||
class SendBaseModeWeb:
|
||||
"""
|
||||
All of the web logic shared between share and website mode
|
||||
All of the web logic shared between share and website mode (modes where the user sends files)
|
||||
"""
|
||||
def __init__(self, common, web):
|
||||
super(BaseModeWeb, self).__init__()
|
||||
super(SendBaseModeWeb, self).__init__()
|
||||
self.common = common
|
||||
self.web = web
|
||||
|
|
@ -6,11 +6,11 @@ import mimetypes
|
|||
import gzip
|
||||
from flask import Response, request, render_template, make_response
|
||||
|
||||
from .base_mode import BaseModeWeb
|
||||
from .send_base_mode import SendBaseModeWeb
|
||||
from .. import strings
|
||||
|
||||
|
||||
class ShareModeWeb(BaseModeWeb):
|
||||
class ShareModeWeb(SendBaseModeWeb):
|
||||
"""
|
||||
All of the web logic for share mode
|
||||
"""
|
||||
|
|
|
@ -4,11 +4,11 @@ import tempfile
|
|||
import mimetypes
|
||||
from flask import Response, request, render_template, make_response
|
||||
|
||||
from .base_mode import BaseModeWeb
|
||||
from .send_base_mode import SendBaseModeWeb
|
||||
from .. import strings
|
||||
|
||||
|
||||
class WebsiteModeWeb(BaseModeWeb):
|
||||
class WebsiteModeWeb(SendBaseModeWeb):
|
||||
"""
|
||||
All of the web logic for website mode
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue