Example #1
0
 def format_in_ap_style(self):
     # Imports from lieux
     from lieux.formats import format_result_in_ap_style
     first_street_formatted = format_result_in_ap_style(
             '1217 %s, %s, %s' % (
                     self.street_one,
                     self.address.components[6],
                     self.address.components[7]
                 )
         )
     fmt_string = [
         " ".join([
                 first_street_formatted[0][5:],
                 'at',
                 format_result_in_ap_style(
                         '1217 %s, %s, %s' % (
                                 self.street_two,
                                 self.address.components[6],
                                 self.address.components[7]
                             )
                     )[0][5:]
             ]),
         first_street_formatted[1]
     ]
     return fmt_string
Example #2
0
 def format_in_ap_style(self):
     # Imports from lieux
     from lieux.formats import format_for_styler, format_result_in_ap_style
     return format_result_in_ap_style(
             format_for_styler(self.components)
         )