from django.core.management.base import BaseCommand, CommandError
from django.db import transaction
-from django.http import QueryDict
from postgresqleu.adyen.models import Notification, AdyenLog
from postgresqleu.adyen.util import process_one_notification
#
# Copyright (C) 2013, PostgreSQL Europe
#
-from django.core.management.base import BaseCommand, CommandError
+from django.core.management.base import BaseCommand
from django.db import transaction
from django.core import urlresolvers
from django.conf import settings
#
# Copyright (C) 2015, PostgreSQL Europe
#
-from django.core.management.base import BaseCommand, CommandError
+from django.core.management.base import BaseCommand
from django.db import transaction
-from django.core import urlresolvers
from django.conf import settings
-from datetime import datetime, timedelta
from StringIO import StringIO
from postgresqleu.braintreepayment.models import BraintreeLog
# Copyright (C) 2015-2016, PostgreSQL Europe
#
-import os
-import sys
import logging
from datetime import date, datetime, timedelta
-from django.core.management.base import BaseCommand, CommandError
+from django.core.management.base import BaseCommand
from django.db import transaction
from django.db.models import Q
from django.conf import settings
import datetime
import csv
import sys
-import os
from decimal import Decimal
from HTMLParser import HTMLParser
import datetime
from psycopg2.extras import DateTimeTZRange
-from selectable.forms.widgets import AutoCompleteSelectWidget, AutoCompleteSelectMultipleWidget
-
-from postgresqleu.util.admin import SelectableWidgetAdminFormMixin
from postgresqleu.util.forms import ConcurrentProtectedModelForm
from postgresqleu.util.random import generate_random_token
from postgresqleu.confreg.models import Conference, ConferenceRegistration, ConferenceAdditionalOption
from postgresqleu.confreg.models import RegistrationClass, RegistrationType, RegistrationDay
-from postgresqleu.confreg.models import ConferenceAdditionalOption, ConferenceFeedbackQuestion
+from postgresqleu.confreg.models import ConferenceFeedbackQuestion
from postgresqleu.confreg.models import ConferenceSession, Track, Room
from postgresqleu.confreg.models import ConferenceSessionScheduleSlot, VolunteerSlot
from postgresqleu.confreg.models import DiscountCode, AccessToken, AccessTokenPermissions
-from django.http import HttpResponse, HttpResponseForbidden
+from django.http import HttpResponse
from django.core.exceptions import PermissionDenied
from django.contrib.auth.models import User
from django.db.models import Q
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.contrib.admin.utils import NestedObjects
from django.contrib import messages
-from django.contrib.auth.decorators import login_required
from django.conf import settings
import urllib
from postgresqleu.util.lists import flatten_list
from postgresqleu.util.decorators import superuser_required
-from models import Conference, ConferenceRegistration
-from models import RegistrationType, RegistrationClass
+from models import Conference
from models import AccessToken
from postgresqleu.invoices.models import Invoice
from django.db.models import Count
from django.db import connection
-from models import Conference, ConferenceFeedbackQuestion, ConferenceFeedbackAnswer
+from models import ConferenceFeedbackQuestion, ConferenceFeedbackAnswer
from backendviews import get_authenticated_conference
from collections import OrderedDict
from django.db.models.fields.files import ImageFieldFile
-from models import Conference, ConferenceRegistration, RegistrationType, Speaker
+from models import ConferenceRegistration, RegistrationType, Speaker
from models import ConferenceAdditionalOption, Track, RegistrationClass
from models import ConferenceSession, ConferenceSessionFeedback
from models import PrepaidVoucher, DiscountCode, AttendeeMail
from regtypes import validate_special_reg_type
-from postgresqleu.util.validators import TwitterValidator
from postgresqleu.util.magic import magicdb
from postgresqleu.countries.models import Country
# Copyright (C) 2015, PostgreSQL Europe
#
-from django.core.management.base import BaseCommand, CommandError
+from django.core.management.base import BaseCommand
from django.db import transaction
from collections import defaultdict
#
# Copyright (C) 2015, PostgreSQL Europe
#
-from django.core.management.base import BaseCommand, CommandError
+from django.core.management.base import BaseCommand
from django.db import transaction
-from django.conf import settings
from datetime import datetime
# Intended to run on a daily basis, as each reminder has it's
# own check for when the user was last notified.
#
-from django.core.management.base import BaseCommand, CommandError
+from django.core.management.base import BaseCommand
from django.db import transaction
-from django.conf import settings
from StringIO import StringIO
from datetime import datetime, timedelta
# Intended to run on a weekly basis or so, as it will keep repeating
# the reminders every time.
#
-from django.core.management.base import BaseCommand, CommandError
-from django.db import transaction
+from django.core.management.base import BaseCommand
from django.conf import settings
from datetime import datetime, timedelta
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-from django.shortcuts import get_object_or_404
from django.shortcuts import render
from django import forms
from django.http import HttpResponse
from reportlab.lib.styles import getSampleStyleSheet
from reportlab.lib.units import cm, mm
-from models import Conference, Room, Track, RegistrationDay, ConferenceSession
+from models import Room, Track, RegistrationDay, ConferenceSession
from backendviews import get_authenticated_conference
def _get_pagesize(size, orient):
from postgresqleu.util.decorators import superuser_required
-from datetime import datetime
-
class ReportException(Exception):
pass
-from django.conf import settings
from django.contrib.auth.models import User
from datetime import datetime, date, timedelta
-from decimal import Decimal
from postgresqleu.mailqueue.util import send_simple_mail, send_template_mail
-from postgresqleu.util.random import generate_random_token
from models import PrepaidVoucher, DiscountCode, RegistrationWaitlistHistory
from models import ConferenceRegistration
# -*- coding: utf-8 -*-
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponseRedirect, HttpResponsePermanentRedirect, HttpResponse, Http404
-from django.template.loader import get_template
from django.contrib.auth.decorators import login_required
from django.views.decorators.csrf import csrf_exempt
from django.contrib.auth.models import User
from django.forms import ValidationError
from models import Conference, ConferenceRegistration, ConferenceSession
-from models import ConferenceSessionSlides, ConferenceSeries
-from models import ConferenceSeriesOptOut, GlobalOptOut
+from models import ConferenceSessionSlides, GlobalOptOut
from models import ConferenceSessionFeedback, Speaker, Speaker_Photo
from models import ConferenceFeedbackQuestion, ConferenceFeedbackAnswer
-from models import RegistrationType, PrepaidVoucher, PrepaidBatch, DiscountCode
+from models import RegistrationType, PrepaidVoucher, PrepaidBatch
from models import BulkPayment, Room, Track, ConferenceSessionScheduleSlot
from models import AttendeeMail, ConferenceAdditionalOption
from models import PendingAdditionalOrder
from models import STATUS_CHOICES
from forms import ConferenceRegistrationForm, RegistrationChangeForm, ConferenceSessionFeedbackForm
from forms import ConferenceFeedbackForm, SpeakerProfileForm
-from forms import CallForPapersForm, CallForPapersSpeakerForm, CallForPapersSubmissionForm
+from forms import CallForPapersForm, CallForPapersSpeakerForm
from forms import CallForPapersCopyForm, PrepaidCreateForm, BulkRegistrationForm
from forms import EmailSendForm, EmailSessionForm, CrossConferenceMailForm
from forms import AttendeeMailForm, WaitlistOfferForm, TransferRegForm
import base64
import re
import os
-import sys
-import imp
from email.mime.text import MIMEText
from Crypto.Hash import SHA256
from StringIO import StringIO
from django.http import HttpResponseRedirect
from django.forms.models import BaseInlineFormSet
from django.forms.utils import ErrorList
-from django import forms
from django.core import urlresolvers
from django.utils.safestring import mark_safe
import base64
import cStringIO as StringIO
import csv
-import json
from base import BaseBenefit, BaseBenefitForm
# that have now either expired or been used fully.
#
-from django.core.management.base import BaseCommand, CommandError
+from django.core.management.base import BaseCommand
from django.db import transaction
from django.conf import settings
from models import PurchasedVoucher
from forms import SponsorSignupForm, SponsorSendEmailForm
from forms import PurchaseVouchersForm, PurchaseDiscountForm
-from forms import AdminCopySponsorshipLevelForm
from benefits import get_benefit_class
from invoicehandler import create_sponsor_invoice, confirm_sponsor
from invoicehandler import create_voucher_invoice
from django.contrib import admin
-from django import forms
-from selectable.forms.widgets import AutoCompleteSelectWidget, AutoCompleteSelectMultipleWidget
+from selectable.forms.widgets import AutoCompleteSelectMultipleWidget
from postgresqleu.confreg.lookups import RegistrationLookup
from postgresqleu.util.admin import SelectableWidgetAdminFormMixin
from postgresqleu.util.forms import ConcurrentProtectedModelForm
# -*- coding: utf-8 -*-
from django.shortcuts import render, get_object_or_404
-from django.http import HttpResponseRedirect, HttpResponse
-from django.http import HttpResponseServerError
+from django.http import HttpResponse
from django.contrib.auth.decorators import login_required, user_passes_test
-from datetime import datetime
-import os
from models import Invoice
-from postgresqleu.confreg.models import Conference, ConferenceRegistration
@login_required
@user_passes_test(lambda u: u.has_module_perms('invoicemgr'))
from django.contrib import admin
-from django import forms
from django.forms import ValidationError
from selectable.forms.widgets import AutoCompleteSelectWidget
#
# Copyright (C) 2015, PostgreSQL Europe
#
-from django.core.management.base import BaseCommand, CommandError
+from django.core.management.base import BaseCommand
from django.db import transaction
from datetime import datetime
# Copyright (C) 2015, PostgreSQL Europe
#
-from django.core.management.base import BaseCommand, CommandError
+from django.core.management.base import BaseCommand
from django.db import transaction
from datetime import datetime, timedelta
from django.contrib.auth.models import User
from django.conf import settings
-from datetime import datetime, timedelta
+from datetime import datetime
from decimal import Decimal
from payment import PaymentMethodWrapper
rowamount = models.DecimalField(decimal_places=2, max_digits=10, null=False, default=0, verbose_name="Amount per item (ex VAT)")
vatrate = models.ForeignKey(VatRate, null=True)
- def __unicode__(self):
- return self.rowtext
-
def __unicode__(self):
return self.rowtext
# The PaymentMethodWrapper needs to be in it's own file, so we don't
# create a circular dependency between models and util.
-from datetime import datetime
-
class PaymentMethodWrapper(object):
def __init__(self, method, invoice, returnurl=None):
self.method = method
#
# Copyright (C) 2010-2013, PostgreSQL Europe
#
-from django.core.management.base import BaseCommand, CommandError
+from django.core.management.base import BaseCommand
from django.db import transaction
from django.db.models import Q
from django.conf import settings
# Copyright (C) 2010-2016, PostgreSQL Europe
#
-from django.core.management.base import BaseCommand, CommandError
+from django.core.management.base import BaseCommand
from django.db import transaction, connection
from django.conf import settings
#
# Copyright (C) 2010-2013, PostgreSQL Europe
#
-from django.core.management.base import BaseCommand, CommandError
+from django.core.management.base import BaseCommand
from django.db import transaction
from django.conf import settings
# Copyright (C) 2010-2018, PostgreSQL Europe
#
-from django.core.management.base import BaseCommand, CommandError
-from django.db import transaction, connection
+from django.core.management.base import BaseCommand
+from django.db import transaction
from django.conf import settings
from postgresqleu.paypal.models import ErrorLog, TransactionInfo
# Copyright (C) 2018, PostgreSQL Europe
#
from django.core.management.base import BaseCommand, CommandError
-from django.conf import settings
-from datetime import datetime
import time
-from postgresqleu.paypal.models import TransactionInfo, ErrorLog
+from postgresqleu.paypal.models import TransactionInfo
from postgresqleu.paypal.util import PaypalAPI
class Command(BaseCommand):
#
-from django.core.management.base import BaseCommand, CommandError
+from django.core.management.base import BaseCommand
from django.db import transaction
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from django.db import transaction
-from django.http import QueryDict
from postgresqleu.trustlypayment.models import TrustlyNotification, TrustlyLog
from postgresqleu.trustlypayment.util import Trustly
#
# Copyright (C) 2016, PostgreSQL Europe
#
-from django.core.management.base import BaseCommand, CommandError
+from django.core.management.base import BaseCommand
from django.db import transaction
from django.core import urlresolvers
from django.conf import settings
from postgresqleu.trustlypayment.models import TrustlyTransaction, TrustlyLog
from postgresqleu.invoices.models import InvoiceRefund, InvoicePaymentMethod
from postgresqleu.invoices.util import InvoiceManager
-from postgresqleu.mailqueue.util import send_simple_mail
from decimal import Decimal
#
-from django.core.management.base import BaseCommand, CommandError
+from django.core.management.base import BaseCommand
from django.db import transaction
from django.conf import settings
from api import TrustlyWrapper, TrustlyException
from models import TrustlyTransaction, TrustlyLog
-from models import TrustlyNotification, TrustlyRawNotification
+from models import TrustlyNotification
# Django intgrated wrapper for the trustly API
from django.conf.urls import include, url
from django.conf import settings
from django.contrib import admin
-from django.views.generic import RedirectView
import postgresqleu.static.views
import postgresqleu.newsevents.views
raise Exception(reason)
api = PaypalAPI()
- from datetime import datetime
invoice.refund.payment_reference = api.refund_transaction(
trans.paypaltransid,
invoice.refund.fullamount,
from postgresqleu.trustlypayment.models import TrustlyTransaction, TrustlyLog
from postgresqleu.trustlypayment.util import Trustly
+from postgresqleu.trustlypayment.api import TrustlyException
class TrustlyPayment(object):
from django.core.files.storage import Storage
from django.core.files import File
from django.db import connection
-from django.db.models import FileField
from django.utils.deconstruct import deconstructible
@deconstructible