~homeworkprod/byceps

4237b3ec9496efe95dcce82bea3207ab9de4d520 — Jochen Kupperschmidt 1 year, 3 months ago 739fd89
Move ticketing blueprint into `site` subpackage
10 files changed, 25 insertions(+), 25 deletions(-)

M byceps/application.py
R byceps/blueprints/{ticketing/__init__.py => site/ticketing/__init__.py}
R byceps/blueprints/{ticketing/forms.py => site/ticketing/forms.py}
R byceps/blueprints/{ticketing/notification_service.py => site/ticketing/notification_service.py}
R byceps/blueprints/{ticketing/templates/ticketing/appoint_seat_manager_form.html => site/ticketing/templates/site/ticketing/appoint_seat_manager_form.html}
R byceps/blueprints/{ticketing/templates/ticketing/appoint_user_form.html => site/ticketing/templates/site/ticketing/appoint_user_form.html}
R byceps/blueprints/{ticketing/templates/ticketing/appoint_user_manager_form.html => site/ticketing/templates/site/ticketing/appoint_user_manager_form.html}
R byceps/blueprints/{ticketing/templates/ticketing/index_mine.html => site/ticketing/templates/site/ticketing/index_mine.html}
R byceps/blueprints/{ticketing/templates/ticketing/view_printable_html.html => site/ticketing/templates/site/ticketing/view_printable_html.html}
R byceps/blueprints/{ticketing/views.py => site/ticketing/views.py}
M byceps/application.py => byceps/application.py +1 -1
@@ 123,7 123,7 @@ def _get_blueprints_site() -> Iterator[BlueprintReg]:
        ('site.shop.orders',            '/shop/orders'              ),
        ('site.snippet',                None                        ),
        ('site.terms',                  '/terms'                    ),
        ('ticketing',                   '/tickets'                  ),
        ('site.ticketing',              '/tickets'                  ),
        ('user.profile',                '/users'                    ),
        ('user_badge',                  '/user_badges'              ),
        ('user_group',                  '/user_groups'              ),

R byceps/blueprints/ticketing/__init__.py => byceps/blueprints/site/ticketing/__init__.py +0 -0
R byceps/blueprints/ticketing/forms.py => byceps/blueprints/site/ticketing/forms.py +6 -6
@@ 1,6 1,6 @@
"""
byceps.blueprints.ticketing.forms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
byceps.blueprints.site.ticketing.forms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.


@@ 11,10 11,10 @@ from flask import g
from wtforms import StringField
from wtforms.validators import InputRequired, ValidationError

from ...services.consent import consent_service
from ...services.terms import version_service as terms_version_service
from ...services.user import service as user_service
from ...util.l10n import LocalizedForm
from ....services.consent import consent_service
from ....services.terms import version_service as terms_version_service
from ....services.user import service as user_service
from ....util.l10n import LocalizedForm


def validate_user(form, field):

R byceps/blueprints/ticketing/notification_service.py => byceps/blueprints/site/ticketing/notification_service.py +8 -8
@@ 1,6 1,6 @@
"""
byceps.blueprints.ticketing.notification_service
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
byceps.blueprints.site.ticketing.notification_service
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.


@@ 8,12 8,12 @@ byceps.blueprints.ticketing.notification_service

from flask import g

from ...services.email import service as email_service
from ...services.party import service as party_service
from ...services.site import service as site_service
from ...services.ticketing.models.ticket import Ticket
from ...services.user import service as user_service
from ...services.user.transfer.models import User
from ....services.email import service as email_service
from ....services.party import service as party_service
from ....services.site import service as site_service
from ....services.ticketing.models.ticket import Ticket
from ....services.user import service as user_service
from ....services.user.transfer.models import User


def notify_appointed_user(ticket: Ticket, user: User, manager: User) -> None:

R byceps/blueprints/ticketing/templates/ticketing/appoint_seat_manager_form.html => byceps/blueprints/site/ticketing/templates/site/ticketing/appoint_seat_manager_form.html +0 -0
R byceps/blueprints/ticketing/templates/ticketing/appoint_user_form.html => byceps/blueprints/site/ticketing/templates/site/ticketing/appoint_user_form.html +0 -0
R byceps/blueprints/ticketing/templates/ticketing/appoint_user_manager_form.html => byceps/blueprints/site/ticketing/templates/site/ticketing/appoint_user_manager_form.html +0 -0
R byceps/blueprints/ticketing/templates/ticketing/index_mine.html => byceps/blueprints/site/ticketing/templates/site/ticketing/index_mine.html +0 -0
R byceps/blueprints/ticketing/templates/ticketing/view_printable_html.html => byceps/blueprints/site/ticketing/templates/site/ticketing/view_printable_html.html +0 -0
R byceps/blueprints/ticketing/views.py => byceps/blueprints/site/ticketing/views.py +10 -10
@@ 1,6 1,6 @@
"""
byceps.blueprints.ticketing.views
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
byceps.blueprints.site.ticketing.views
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.


@@ 8,21 8,21 @@ byceps.blueprints.ticketing.views

from flask import abort, g, redirect, request, url_for

from ...services.party import service as party_service
from ...services.ticketing import (
from ....services.party import service as party_service
from ....services.ticketing import (
    barcode_service,
    category_service as ticket_category_service,
    ticket_service,
    ticket_seat_management_service,
    ticket_user_management_service,
)
from ...util.framework.blueprint import create_blueprint
from ...util.framework.flash import flash_error, flash_success
from ...util.iterables import find
from ...util.framework.templating import templated
from ...util.views import respond_no_content
from ....util.framework.blueprint import create_blueprint
from ....util.framework.flash import flash_error, flash_success
from ....util.iterables import find
from ....util.framework.templating import templated
from ....util.views import respond_no_content

from ..authentication.decorators import login_required
from ...authentication.decorators import login_required

from .forms import SpecifyUserForm
from . import notification_service