コード例 #1
0
def main():
    if app.config.get('ARRIVALS_SITE'):
        return redirect(url_for('arrivals'))

    full_price = TicketType.query.get('full').get_price('GBP')
    if not (app.config.get('BANK_TRANSFER') or app.config.get('GOCARDLESS')):
        # Only card payment left
        full_price += StripePayment.premium('GBP', full_price)
    return render_template('splash.html',
                           ticket_sales=app.config.get('TICKET_SALES', False),
                           full_price=full_price)
コード例 #2
0
ファイル: basic.py プロジェクト: marekventur/Website
def main():
    if app.config.get('ARRIVALS_SITE'):
        return redirect(url_for('arrivals'))

    full_price = TicketType.query.get('full').get_price('GBP')
    if not (app.config.get('BANK_TRANSFER') or app.config.get('GOCARDLESS')):
        # Only card payment left
        full_price += StripePayment.premium('GBP', full_price)
    return render_template('splash.html',
        ticket_sales=app.config.get('TICKET_SALES', False),
        full_price=full_price)
コード例 #3
0
def main():
    full_price = TicketType.get_price_cheapest_full()
    if not (feature_enabled('BANK_TRANSFER')
            or feature_enabled('GOCARDLESS')) and full_price is not None:
        # Only card payment left
        full_price += StripePayment.premium('GBP', full_price)

    state = get_site_state()
    if app.config.get('DEBUG'):
        state = request.args.get("site_state", state)

    return render_template('home/%s.html' % state, full_price=full_price)
コード例 #4
0
def main():
    full_price = TicketType.get_price_cheapest_full()
    if not (feature_enabled('BANK_TRANSFER') or feature_enabled('GOCARDLESS')) and full_price is not None:
        # Only card payment left
        full_price += StripePayment.premium('GBP', full_price)

    state = get_site_state()
    if app.config.get('DEBUG'):
        state = request.args.get("site_state", state)

    return render_template('home/%s.html' % state,
                           full_price=full_price)