Rename BaseModeWeb to SendBaseModeWeb, because this code is only actually shared by send modes (Share and Website, not Receive)

This commit is contained in:
Micah Lee 2019-09-01 18:05:53 -04:00
parent 328b1500ab
commit 7b2b8c2284
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
4 changed files with 8 additions and 8 deletions

View file

@ -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
"""

View file

@ -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

View file

@ -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
"""

View file

@ -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
"""