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))
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))
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)
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
def domain_save_callback(sender, domain, **kwargs): domain = ensure_domain_instance(domain) if domain: update_subscription_properties_by_domain(domain)
def domain_save_callback(sender, domain, **kwargs): domain = ensure_domain_instance(domain) if domain: update_subscription_properties_by_domain(domain)