Exemplo n.º 1
0
 def get_source_link(self):
     """A link to the website where this vote information was obtained."""
     if self.source == VoteSource.senate:
         return "http://www.senate.gov/legislative/LIS/roll_call_lists/roll_call_vote_cfm.cfm?congress=%d&session=%s&vote=%05d" % (
             self.congress, get_session_ordinal(self.congress,
                                                self.session), self.number)
     elif self.source == VoteSource.house:
         return "http://clerk.house.gov/evs/%d/roll%03d.xml" % (
             self.created.year, self.number)
     elif self.source == VoteSource.keithpoole:
         return "http://voteview.com/"
     raise ValueError("invalid source: " + str(self.source))
Exemplo n.º 2
0
 def get_source_link(self):
     """A link to the website where this vote information was obtained."""
     if self.source == VoteSource.senate:
         return "http://www.senate.gov/legislative/LIS/roll_call_lists/roll_call_vote_cfm.cfm?congress=%d&session=%s&vote=%05d" % (self.congress, get_session_ordinal(self.congress, self.session), self.number)
     elif self.source == VoteSource.house:
         return "http://clerk.house.gov/evs/%d/roll%03d.xml" % (self.created.year, self.number)
     elif self.source == VoteSource.keithpoole:
         return "http://voteview.com/"
     raise ValueError("invalid source: " + str(self.source))