Пример #1
0
 def pdf_url(self):
     if self.report_year and self.report_year >= 2000:
         return utils.make_report_pdf_url(self.beginning_image_number)
     if self.form_type in ['F3X', 'F3P'] and self.report_year > 1993:
         return utils.make_report_pdf_url(self.beginning_image_number)
     if self.form_type == 'F3' and self.committee.committee_type == 'H' and self.report_year > 1996:
         return utils.make_report_pdf_url(self.beginning_image_number)
     return None
Пример #2
0
 def pdf_url(self):
     if self.report_year and self.report_year >= 2000:
         return utils.make_report_pdf_url(self.beginning_image_number)
     if self.form_type in ["F3X", "F3P"] and self.report_year > 1993:
         return utils.make_report_pdf_url(self.beginning_image_number)
     if self.form_type == "F3" and self.committee.committee_type == "H" and self.report_year > 1996:
         return utils.make_report_pdf_url(self.beginning_image_number)
     return None
Пример #3
0
 def pdf_url(self):
     if self.report_year is None or self.committee is None:
         return None
     # House records start May 1996
     if self.committee.committee_type == 'H' and self.report_year < 1996:
         return None
     # Senate records start May 2000
     elif self.committee.committee_type == 'S' and self.report_year < 2000:
         return None
     return utils.make_report_pdf_url(self.beginning_image_number)
Пример #4
0
 def pdf_url(self):
     if self.report_year is None or self.committee is None:
         return None
     # House records start May 1996
     if self.committee.committee_type == 'H' and self.report_year < 1996:
         return None
     # Senate records start May 2000
     elif self.committee.committee_type == 'S' and self.report_year < 2000:
         return None
     return utils.make_report_pdf_url(self.beginning_image_number)
Пример #5
0
 def pdf_url(self):
     if self.has_pdf:
         return utils.make_report_pdf_url(self.beginning_image_number)
     return None
Пример #6
0
 def pdf_url(self):
     if self.has_pdf:
         return utils.make_report_pdf_url(self.beginning_image_number)
     return None
Пример #7
0
 def pdf_url(self):
     if self.report_year is None or self.report_year < 1993:
         return None
     return utils.make_report_pdf_url(self.beginning_image_number)
Пример #8
0
 def pdf_url(self):
     if self.report_year is None or self.report_year < 1993:
         return None
     return utils.make_report_pdf_url(self.beginning_image_number)
Пример #9
0
 def pdf_url(self):
     return utils.make_report_pdf_url(self.image_number)
Пример #10
0
 def pdf_url(self):
     return utils.make_report_pdf_url(self.image_number)