@@ -1683,29 +1683,36 @@ def footer_url(self):
16831683
16841684 @amo .cached_property
16851685 def update_url (self ):
1686- return settings .PERSONAS_UPDATE_URL % self .persona_id
1686+ locale = settings .LANGUAGE_URL_MAP .get (translation .get_language ())
1687+ return settings .NEW_PERSONAS_UPDATE_URL % {
1688+ 'locale' : locale or settings .LANGUAGE_CODE ,
1689+ 'id' : self .addon .id
1690+ }
16871691
16881692 @amo .cached_property
16891693 def theme_data (self ):
16901694 """Theme JSON Data for Browser/extension preview."""
16911695 hexcolor = lambda color : '#%s' % color
16921696 addon = self .addon
16931697 return {
1694- 'id' : unicode (self .persona_id ), # Personas dislikes ints
1695- 'name' : addon .name ,
1698+ 'id' : unicode (self .addon . id ), # Personas dislikes ints
1699+ 'name' : unicode ( addon .name ) ,
16961700 'accentcolor' : hexcolor (self .accentcolor ),
16971701 'textcolor' : hexcolor (self .textcolor ),
16981702 'category' : (addon .all_categories [0 ].name if
16991703 addon .all_categories else '' ),
1700- 'author' : self .author ,
1701- 'description' : addon .description ,
1704+ # TODO: Change this to be `addons_users.user.display_name`.
1705+ 'author' : self .display_username ,
1706+ 'description' : unicode (addon .description ),
17021707 'header' : self .header_url ,
17031708 'footer' : self .footer_url ,
17041709 'headerURL' : self .header_url ,
17051710 'footerURL' : self .footer_url ,
17061711 'previewURL' : self .thumb_url ,
17071712 'iconURL' : self .icon_url ,
17081713 'updateURL' : self .update_url ,
1714+ 'detailURL' : self .addon .get_url_path (),
1715+ 'version' : '1.0'
17091716 }
17101717
17111718 @property
0 commit comments