Esempio n. 1
0
 def build_downloadable_row(self):
     return [
         self.first_name, self.last_name, self.business_name,
         self.email, self.phone_number, self.minority_owned,
         self.woman_owned, self.veteran_owned, self.disadvantaged_owned,
         build_downloadable_groups('category_friendly_name', self.categories),
         build_downloadable_groups('title', self.opportunities)
     ]
    def build_downloadable_row(self):
        '''Take a Vendor object and build a list for a .tsv download

        Returns:
            List of all vendor fields in order for a bulk vendor download
        '''
        return [
            self.first_name, self.last_name, self.business_name,
            self.email, self.phone_number, self.minority_owned,
            self.woman_owned, self.veteran_owned, self.disadvantaged_owned,
            build_downloadable_groups('category_friendly_name', self.categories),
            build_downloadable_groups('title', self.opportunities)
        ]
    def build_downloadable_row(self):
        '''Take a Vendor object and build a list for a .tsv download

        Returns:
            List of all vendor fields in order for a bulk vendor download
        '''
        return [
            self.first_name, self.last_name, self.business_name, self.email,
            self.phone_number, self.minority_owned, self.woman_owned,
            self.veteran_owned, self.disadvantaged_owned,
            build_downloadable_groups('category_friendly_name',
                                      self.categories),
            build_downloadable_groups('title', self.opportunities)
        ]