Пример #1
0
 def __init__(self, domain, date_start=None, date_end=None, contact_emails=None):
     self.date_start = date_start
     self.date_end = date_end
     self.contact_emails = contact_emails
     self.domain = ensure_domain_instance(domain)
     self.logged_throttle_error = False
     if self.domain is None:
         raise InvoiceError("Domain '{}' is not a valid domain on HQ!".format(self.domain))
Пример #2
0
 def __init__(self, domain, date_start=None, date_end=None, contact_emails=None):
     self.date_start = date_start
     self.date_end = date_end
     self.contact_emails = contact_emails
     self.domain = ensure_domain_instance(domain)
     self.logged_throttle_error = False
     if self.domain is None:
         raise InvoiceError("Domain '{}' is not a valid domain on HQ!".format(self.domain))
Пример #3
0
 def __init__(self, date_start, date_end, domain, recipients=None):
     """
     The Invoice generated will always be for the month preceding the
     invoicing_date.
     For example, if today is July 5, 2014 then the invoice will be from
     June 1, 2014 to June 30, 2014.
     """
     self.date_start = date_start
     self.date_end = date_end
     self.domain = ensure_domain_instance(domain)
     self.recipients = recipients
     self.logged_throttle_error = False
     if self.domain is None:
         raise InvoiceError("Domain '%s' is not a valid domain on HQ!" % domain)
Пример #4
0
 def __init__(self, date_start, date_end, domain):
     """
     The Invoice generated will always be for the month preceding the
     invoicing_date.
     For example, if today is July 5, 2014 then the invoice will be from
     June 1, 2014 to June 30, 2014.
     """
     self.date_start = date_start
     self.date_end = date_end
     self.domain = ensure_domain_instance(domain)
     self.logged_throttle_error = False
     if self.domain is None:
         raise InvoiceError("Domain '%s' is not a valid domain on HQ!" % domain)
     self.is_community_invoice = False
Пример #5
0
def domain_save_callback(sender, domain, **kwargs):
    domain = ensure_domain_instance(domain)
    if domain:
        update_subscription_properties_by_domain(domain)
Пример #6
0
def domain_save_callback(sender, domain, **kwargs):
    domain = ensure_domain_instance(domain)
    if domain:
        update_subscription_properties_by_domain(domain)