コード例 #1
0
ファイル: invoicing.py プロジェクト: saketkanth/commcare-hq
 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
ファイル: invoicing.py プロジェクト: hashimoto-hb/commcare-hq
 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
ファイル: signals.py プロジェクト: ronin001/commcare-hq
def domain_save_callback(sender, domain, **kwargs):
    domain = ensure_domain_instance(domain)
    if domain:
        update_subscription_properties_by_domain(domain)
コード例 #6
0
ファイル: signals.py プロジェクト: saakaifoundry/commcare-hq
def domain_save_callback(sender, domain, **kwargs):
    domain = ensure_domain_instance(domain)
    if domain:
        update_subscription_properties_by_domain(domain)