diff --git a/sc/social/like/browser/viewlets.py b/sc/social/like/browser/viewlets.py index 47a28fe0..c87815f6 100644 --- a/sc/social/like/browser/viewlets.py +++ b/sc/social/like/browser/viewlets.py @@ -84,7 +84,7 @@ def render_method(self): # site specific privacy level check if getattr(site_properties, 'sc_social_likes_properties') \ and getattr(site_properties.sc_social_likes_properties, - 'privacy') and \ - site_properties.sc_social_likes_properties.privacy: + 'do_not_track') and \ + site_properties.sc_social_likes_properties.do_not_track: return 'link' return 'plugin' diff --git a/sc/social/like/controlpanel/likes.py b/sc/social/like/controlpanel/likes.py index 6b6a2fce..7843d2e1 100644 --- a/sc/social/like/controlpanel/likes.py +++ b/sc/social/like/controlpanel/likes.py @@ -72,10 +72,10 @@ class IProvidersSchema(Interface): vocabulary=styles, ) - privacy = schema.Bool( - title=_(u'Severe privacy'), + do_not_track = schema.Bool( + title=_(u'Do not track users'), description=_( - u'help_privacy', + u'help_do_not_track', default=u'If enabled, the site will not provide advanced sharing ' u'widgets , instead simple links will be used.\n' u'This will limits user experience and features ' @@ -103,7 +103,7 @@ class LikeControlPanelAdapter(BaseControlPanelAdapter): enabled_portal_types = PFP(IProvidersSchema['enabled_portal_types']) typebutton = PFP(IProvidersSchema['typebutton']) plugins_enabled = PFP(IProvidersSchema['plugins_enabled']) - privacy = PFP(IProvidersSchema['privacy']) + do_not_track = PFP(IProvidersSchema['do_not_track']) class ProvidersControlPanel(ControlPanelForm): diff --git a/sc/social/like/locales/de/LC_MESSAGES/sc.social.like.po b/sc/social/like/locales/de/LC_MESSAGES/sc.social.like.po index 91e9e142..6521ee83 100644 --- a/sc/social/like/locales/de/LC_MESSAGES/sc.social.like.po +++ b/sc/social/like/locales/de/LC_MESSAGES/sc.social.like.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: sc.social 2.2\n" -"POT-Creation-Date: 2015-07-02 10:16+0000\n" +"POT-Creation-Date: 2015-07-10 14:23+0000\n" "PO-Revision-Date: 2015-05-29 09:50 +0002\n" "Last-Translator: Toni Fischer \n" "Language-Team: LANGUAGE \n" @@ -49,6 +49,10 @@ msgstr "Einstellungen für die Social Media \"Like\" Aktionen." msgid "Content types" msgstr "Inhaltstypen" +#: ../controlpanel/likes.py:76 +msgid "Do not track users" +msgstr "" + #: ../plugins/facebook/controlpanel.py:64 msgid "Facebook buttons" msgstr "Facbook Buttons" @@ -77,10 +81,6 @@ msgstr "Plugins" msgid "Recommend" msgstr "Empfehlen" -#: ../controlpanel/likes.py:76 -msgid "Severe privacy" -msgstr "" - #: ../plugins/facebook/controlpanel.py:23 msgid "Share" msgstr "Teilen" @@ -154,12 +154,17 @@ msgstr "Angezeigtes Wort" msgid "help_admins" msgstr "Eine Komma getrennte Liste von entweder den Facebook IDs der Seiten-Administratoren oder der Facebook App ID." -#. Default: "A Facebook Platform application ID.\nThis is required when high privacy is enabled." +#. Default: "A Facebook Platform application ID.\nThis is required when \"Do not track users\" option is enabled." #: ../plugins/facebook/controlpanel.py:55 #, fuzzy msgid "help_appid" msgstr "Eine Facebook App ID." +#. Default: "If enabled, the site will not provide advanced sharing widgets , instead simple links will be used.\nThis will limits user experience and features (like the share count) but will enhance users privacy: no 3rd party cookies will be sent to users." +#: ../controlpanel/likes.py:77 +msgid "help_do_not_track" +msgstr "" + #. Default: "Please select which plugins will be used" #: ../controlpanel/likes.py:56 msgid "help_enabled_plugins" @@ -175,11 +180,6 @@ msgstr "Welche Buttons sollen angezeigt werden?" msgid "help_portal_types" msgstr "Die Inhaltstypen auswählen auf denen das Viewlet angezeigt werden soll." -#. Default: "If enabled, the site will not provide advanced sharing widgets , instead simple links will be used.\nThis will limits user experience and features (like the share count) but will enhance users privacy: no 3rd party cookies will be sent to users." -#: ../controlpanel/likes.py:77 -msgid "help_privacy" -msgstr "" - #. Default: "Choose your button style." #: ../controlpanel/likes.py:66 msgid "help_selected_buttons" diff --git a/sc/social/like/locales/es/LC_MESSAGES/sc.social.like.po b/sc/social/like/locales/es/LC_MESSAGES/sc.social.like.po index 87cd0be1..c231a5c1 100644 --- a/sc/social/like/locales/es/LC_MESSAGES/sc.social.like.po +++ b/sc/social/like/locales/es/LC_MESSAGES/sc.social.like.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: sc.social.like\n" -"POT-Creation-Date: 2015-07-02 10:16+0000\n" +"POT-Creation-Date: 2015-07-10 14:23+0000\n" "PO-Revision-Date: 2015-03-02 16:03-0300\n" "Last-Translator: Héctor Velarde \n" "Language-Team: Simples Consultoria \n" @@ -54,6 +54,10 @@ msgstr "Configuración de las acciones sociales." msgid "Content types" msgstr "Tipos de contenido" +#: ../controlpanel/likes.py:76 +msgid "Do not track users" +msgstr "" + #: ../plugins/facebook/controlpanel.py:64 msgid "Facebook buttons" msgstr "Botones de facebook" @@ -82,10 +86,6 @@ msgstr "Plugins" msgid "Recommend" msgstr "Recomendar" -#: ../controlpanel/likes.py:76 -msgid "Severe privacy" -msgstr "" - #: ../plugins/facebook/controlpanel.py:23 msgid "Share" msgstr "Compartir" @@ -160,12 +160,17 @@ msgstr "Texto a mostrar" msgid "help_admins" msgstr "Una lista de los ID de los administradores de esta página, separados por comas, o el ID de una aplicación de Facebook." -#. Default: "A Facebook Platform application ID.\nThis is required when high privacy is enabled." +#. Default: "A Facebook Platform application ID.\nThis is required when \"Do not track users\" option is enabled." #: ../plugins/facebook/controlpanel.py:55 #, fuzzy msgid "help_appid" msgstr "El ID de la aplicación en la plataforma Facebook." +#. Default: "If enabled, the site will not provide advanced sharing widgets , instead simple links will be used.\nThis will limits user experience and features (like the share count) but will enhance users privacy: no 3rd party cookies will be sent to users." +#: ../controlpanel/likes.py:77 +msgid "help_do_not_track" +msgstr "" + #. Default: "Please select which plugins will be used" #: ../controlpanel/likes.py:56 msgid "help_enabled_plugins" @@ -181,11 +186,6 @@ msgstr "Seleccione los botones que serán mostrados" msgid "help_portal_types" msgstr "Seleccione en cuáles tipos de contenido se mostrará el viewlet social." -#. Default: "If enabled, the site will not provide advanced sharing widgets , instead simple links will be used.\nThis will limits user experience and features (like the share count) but will enhance users privacy: no 3rd party cookies will be sent to users." -#: ../controlpanel/likes.py:77 -msgid "help_privacy" -msgstr "" - #. Default: "Choose your button style." #: ../controlpanel/likes.py:66 msgid "help_selected_buttons" diff --git a/sc/social/like/locales/eu/LC_MESSAGES/sc.social.like.po b/sc/social/like/locales/eu/LC_MESSAGES/sc.social.like.po index d0da52d0..399321b7 100644 --- a/sc/social/like/locales/eu/LC_MESSAGES/sc.social.like.po +++ b/sc/social/like/locales/eu/LC_MESSAGES/sc.social.like.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: sc.social.like\n" -"POT-Creation-Date: 2015-07-02 10:16+0000\n" +"POT-Creation-Date: 2015-07-10 14:23+0000\n" "PO-Revision-Date: 2011-12-12 13:30+0100\n" "Last-Translator: Mikel Larreategi \n" "Language-Team: es \n" @@ -50,6 +50,10 @@ msgstr "Konfiguratu Social Like produktuaren aukerak" msgid "Content types" msgstr "Elementu-motak" +#: ../controlpanel/likes.py:76 +msgid "Do not track users" +msgstr "" + #: ../plugins/facebook/controlpanel.py:64 msgid "Facebook buttons" msgstr "" @@ -78,10 +82,6 @@ msgstr "" msgid "Recommend" msgstr "Gomendatu!" -#: ../controlpanel/likes.py:76 -msgid "Severe privacy" -msgstr "" - #: ../plugins/facebook/controlpanel.py:23 msgid "Share" msgstr "" @@ -156,11 +156,16 @@ msgstr "Erakutsiko den testua" msgid "help_admins" msgstr "Facebook kontuaren kudeatzaileen Facebook IDak. Banatu komarekin bat baino gehiagoa badaude." -#. Default: "A Facebook Platform application ID.\nThis is required when high privacy is enabled." +#. Default: "A Facebook Platform application ID.\nThis is required when \"Do not track users\" option is enabled." #: ../plugins/facebook/controlpanel.py:55 msgid "help_appid" msgstr "" +#. Default: "If enabled, the site will not provide advanced sharing widgets , instead simple links will be used.\nThis will limits user experience and features (like the share count) but will enhance users privacy: no 3rd party cookies will be sent to users." +#: ../controlpanel/likes.py:77 +msgid "help_do_not_track" +msgstr "" + #. Default: "Please select which plugins will be used" #: ../controlpanel/likes.py:56 msgid "help_enabled_plugins" @@ -176,11 +181,6 @@ msgstr "" msgid "help_portal_types" msgstr "Aukeratu zein elementutan agertuko diren loturak" -#. Default: "If enabled, the site will not provide advanced sharing widgets , instead simple links will be used.\nThis will limits user experience and features (like the share count) but will enhance users privacy: no 3rd party cookies will be sent to users." -#: ../controlpanel/likes.py:77 -msgid "help_privacy" -msgstr "" - #. Default: "Choose your button style." #: ../controlpanel/likes.py:66 msgid "help_selected_buttons" diff --git a/sc/social/like/locales/it/LC_MESSAGES/sc.social.like.po b/sc/social/like/locales/it/LC_MESSAGES/sc.social.like.po index b4ca90f3..968a832b 100644 --- a/sc/social/like/locales/it/LC_MESSAGES/sc.social.like.po +++ b/sc/social/like/locales/it/LC_MESSAGES/sc.social.like.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2015-07-02 10:16+0000\n" +"POT-Creation-Date: 2015-07-10 14:23+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" "Last-Translator: Luca Fabbri \n" "Language-Team: RedTurtle Technology \n" @@ -53,6 +53,10 @@ msgstr "Configura impostazioni le le azioni dei social network" msgid "Content types" msgstr "Tipi di contenuto" +#: ../controlpanel/likes.py:76 +msgid "Do not track users" +msgstr "Non tracciare gli utenti" + #: ../plugins/facebook/controlpanel.py:64 msgid "Facebook buttons" msgstr "Bottoni Facebook" @@ -81,10 +85,6 @@ msgstr "Plugin" msgid "Recommend" msgstr "Consigliato" -#: ../controlpanel/likes.py:76 -msgid "Severe privacy" -msgstr "Privacy rigida" - #: ../plugins/facebook/controlpanel.py:23 msgid "Share" msgstr "Condividi" @@ -158,12 +158,19 @@ msgstr "Verbo da visualizzare" msgid "help_admins" msgstr "Una lista separata da virgole di ID Facebook di amministratori della pagina" -#. Default: "A Facebook Platform application ID.\nThis is required when high privacy is enabled." +#. Default: "A Facebook Platform application ID.\nThis is required when \"Do not track users\" option is enabled." #: ../plugins/facebook/controlpanel.py:55 msgid "help_appid" msgstr "" "L'ID di un'applicazione Facebook.\n" -"Questa informazione è richiesta quando l'impostazione di privacy avanzata è abilitata." +"Questa informazione è richiesta quando l'impostazione \"Non tracciare gli utenti\" è abilitata." + +#. Default: "If enabled, the site will not provide advanced sharing widgets , instead simple links will be used.\nThis will limits user experience and features (like the share count) but will enhance users privacy: no 3rd party cookies will be sent to users." +#: ../controlpanel/likes.py:77 +msgid "help_do_not_track" +msgstr "" +"Se abilitata, il sito not fornirà i componenti di condivisione avanzati ma saranno usati dei semplici link.\n" +"Questo limita l'esperienza utente e le funzionalità (come il conteggio delle condivisioni) ma aumenta la privacy degli utenti: nessun cookie di terze party sarà inviato agli utenti." #. Default: "Please select which plugins will be used" #: ../controlpanel/likes.py:56 @@ -180,13 +187,6 @@ msgstr "Seleziona i bottoni da visualizzare" msgid "help_portal_types" msgstr "Prego selezionare su quali tipi di contenuto la viewlet verrà applicata" -#. Default: "If enabled, the site will not provide advanced sharing widgets , instead simple links will be used.\nThis will limits user experience and features (like the share count) but will enhance users privacy: no 3rd party cookies will be sent to users." -#: ../controlpanel/likes.py:77 -msgid "help_privacy" -msgstr "" -"Se abilitata, il sito not fornirà i componenti di condivisione avanzati ma saranno usati dei semplici link.\n" -"Questo limita l'esperienza utente e le funzionalità (come il conteggio delle condivisioni) ma aumenta la privacy degli utenti: nessun cookie di terze party sarà inviato agli utenti." - #. Default: "Choose your button style." #: ../controlpanel/likes.py:66 msgid "help_selected_buttons" diff --git a/sc/social/like/locales/pt_BR/LC_MESSAGES/sc.social.like.po b/sc/social/like/locales/pt_BR/LC_MESSAGES/sc.social.like.po index 9e13f63c..f084489d 100644 --- a/sc/social/like/locales/pt_BR/LC_MESSAGES/sc.social.like.po +++ b/sc/social/like/locales/pt_BR/LC_MESSAGES/sc.social.like.po @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: sc.social.like\n" -"POT-Creation-Date: 2015-07-02 10:16+0000\n" +"POT-Creation-Date: 2015-07-10 14:23+0000\n" "PO-Revision-Date: 2015-03-02 15:59-0300\n" "Last-Translator: Héctor Velarde \n" "Language-Team: Simples Consultoria \n" @@ -52,6 +52,10 @@ msgstr "Configurações para as ações sociais" msgid "Content types" msgstr "Tipos de conteúdo" +#: ../controlpanel/likes.py:76 +msgid "Do not track users" +msgstr "" + #: ../plugins/facebook/controlpanel.py:64 msgid "Facebook buttons" msgstr "Botões do Facebook" @@ -80,10 +84,6 @@ msgstr "Plugins" msgid "Recommend" msgstr "Recomendar" -#: ../controlpanel/likes.py:76 -msgid "Severe privacy" -msgstr "" - #: ../plugins/facebook/controlpanel.py:23 msgid "Share" msgstr "Compartilhar" @@ -158,12 +158,17 @@ msgstr "Verbo a ser exibido" msgid "help_admins" msgstr "Uma lista, separada por vírgulas, dos IDs dos administradores desta página ou o ID de uma aplicação da plataforma Facebook." -#. Default: "A Facebook Platform application ID.\nThis is required when high privacy is enabled." +#. Default: "A Facebook Platform application ID.\nThis is required when \"Do not track users\" option is enabled." #: ../plugins/facebook/controlpanel.py:55 #, fuzzy msgid "help_appid" msgstr "ID da aplicação na plataforma Facebook." +#. Default: "If enabled, the site will not provide advanced sharing widgets , instead simple links will be used.\nThis will limits user experience and features (like the share count) but will enhance users privacy: no 3rd party cookies will be sent to users." +#: ../controlpanel/likes.py:77 +msgid "help_do_not_track" +msgstr "" + #. Default: "Please select which plugins will be used" #: ../controlpanel/likes.py:56 msgid "help_enabled_plugins" @@ -179,11 +184,6 @@ msgstr "Selecione os botões que serão mostrados" msgid "help_portal_types" msgstr "Indique quais tipos de conteúdo terão o viewlet de ações sociais." -#. Default: "If enabled, the site will not provide advanced sharing widgets , instead simple links will be used.\nThis will limits user experience and features (like the share count) but will enhance users privacy: no 3rd party cookies will be sent to users." -#: ../controlpanel/likes.py:77 -msgid "help_privacy" -msgstr "" - #. Default: "Choose your button style." #: ../controlpanel/likes.py:66 msgid "help_selected_buttons" diff --git a/sc/social/like/locales/sc.social.like.pot b/sc/social/like/locales/sc.social.like.pot index 931c3fcd..b79151ab 100644 --- a/sc/social/like/locales/sc.social.like.pot +++ b/sc/social/like/locales/sc.social.like.pot @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2015-07-02 10:16+0000\n" +"POT-Creation-Date: 2015-07-10 14:23+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -52,6 +52,10 @@ msgstr "" msgid "Content types" msgstr "" +#: ../controlpanel/likes.py:76 +msgid "Do not track users" +msgstr "" + #: ../plugins/facebook/controlpanel.py:64 msgid "Facebook buttons" msgstr "" @@ -80,10 +84,6 @@ msgstr "" msgid "Recommend" msgstr "" -#: ../controlpanel/likes.py:76 -msgid "Severe privacy" -msgstr "" - #: ../plugins/facebook/controlpanel.py:23 msgid "Share" msgstr "" @@ -157,11 +157,16 @@ msgstr "" msgid "help_admins" msgstr "" -#. Default: "A Facebook Platform application ID.\nThis is required when high privacy is enabled." +#. Default: "A Facebook Platform application ID.\nThis is required when \"Do not track users\" option is enabled." #: ../plugins/facebook/controlpanel.py:55 msgid "help_appid" msgstr "" +#. Default: "If enabled, the site will not provide advanced sharing widgets , instead simple links will be used.\nThis will limits user experience and features (like the share count) but will enhance users privacy: no 3rd party cookies will be sent to users." +#: ../controlpanel/likes.py:77 +msgid "help_do_not_track" +msgstr "" + #. Default: "Please select which plugins will be used" #: ../controlpanel/likes.py:56 msgid "help_enabled_plugins" @@ -177,11 +182,6 @@ msgstr "" msgid "help_portal_types" msgstr "" -#. Default: "If enabled, the site will not provide advanced sharing widgets , instead simple links will be used.\nThis will limits user experience and features (like the share count) but will enhance users privacy: no 3rd party cookies will be sent to users." -#: ../controlpanel/likes.py:77 -msgid "help_privacy" -msgstr "" - #. Default: "Choose your button style." #: ../controlpanel/likes.py:66 msgid "help_selected_buttons" diff --git a/sc/social/like/plugins/facebook/controlpanel.py b/sc/social/like/plugins/facebook/controlpanel.py index 3d64aee0..41490e7e 100644 --- a/sc/social/like/plugins/facebook/controlpanel.py +++ b/sc/social/like/plugins/facebook/controlpanel.py @@ -55,7 +55,7 @@ class IFacebookSchema(Interface): description=_( u'help_appid', default=u'A Facebook Platform application ID.\n' - u'This is required when high privacy is enabled.', + u'This is required when \"Do not track users\" option is enabled.', ), required=False, ) diff --git a/sc/social/like/plugins/interfaces.py b/sc/social/like/plugins/interfaces.py index 0c860c8d..4bcd2dc5 100644 --- a/sc/social/like/plugins/interfaces.py +++ b/sc/social/like/plugins/interfaces.py @@ -18,7 +18,7 @@ def plugin(): """ Return html render method """ def link(): - """ Return html render method when high privacy is required""" + """ Return html render method when "do_not_track" is active""" class IPluginView(Interface): diff --git a/sc/social/like/profiles/default/propertiestool.xml b/sc/social/like/profiles/default/propertiestool.xml index 1b8bdf98..af216efd 100644 --- a/sc/social/like/profiles/default/propertiestool.xml +++ b/sc/social/like/profiles/default/propertiestool.xml @@ -22,6 +22,6 @@ - + diff --git a/sc/social/like/tests/test_plugin_facebook.py b/sc/social/like/tests/test_plugin_facebook.py index 6e80015e..909d8fa3 100644 --- a/sc/social/like/tests/test_plugin_facebook.py +++ b/sc/social/like/tests/test_plugin_facebook.py @@ -134,7 +134,7 @@ def test_privacy_plugin_view_html(self): plugin = self.plugin portal = self.portal properties = portal.portal_properties.sc_social_likes_properties - properties.privacy = True + properties.do_not_track = True plugin_view = plugin.view() view = portal.restrictedTraverse(plugin_view) html = view.link() diff --git a/sc/social/like/tests/test_plugin_gplus.py b/sc/social/like/tests/test_plugin_gplus.py index 1b7be0cf..9e6254d6 100644 --- a/sc/social/like/tests/test_plugin_gplus.py +++ b/sc/social/like/tests/test_plugin_gplus.py @@ -84,7 +84,7 @@ def test_privacy_plugin_view_html(self): plugin = self.plugin portal = self.portal properties = portal.portal_properties.sc_social_likes_properties - properties.privacy = True + properties.do_not_track = True plugin_view = plugin.view() view = portal.restrictedTraverse(plugin_view) html = view.link() diff --git a/sc/social/like/tests/test_plugin_linkedin.py b/sc/social/like/tests/test_plugin_linkedin.py index 1f43890e..62808428 100644 --- a/sc/social/like/tests/test_plugin_linkedin.py +++ b/sc/social/like/tests/test_plugin_linkedin.py @@ -84,7 +84,7 @@ def test_privacy_plugin_view_html(self): plugin = self.plugin portal = self.portal properties = portal.portal_properties.sc_social_likes_properties - properties.privacy = True + properties.do_not_track = True plugin_view = plugin.view() view = portal.restrictedTraverse(plugin_view) html = view.link() diff --git a/sc/social/like/tests/test_plugin_pinterest.py b/sc/social/like/tests/test_plugin_pinterest.py index d0dba82c..dfa43ecb 100644 --- a/sc/social/like/tests/test_plugin_pinterest.py +++ b/sc/social/like/tests/test_plugin_pinterest.py @@ -96,7 +96,7 @@ def test_privacy_plugin_view_html(self): plugin = self.plugin portal = self.portal properties = portal.portal_properties.sc_social_likes_properties - properties.privacy = True + properties.do_not_track = True plugin_view = plugin.view() view = portal.restrictedTraverse(plugin_view) html = view.link() diff --git a/sc/social/like/tests/test_plugin_twitter.py b/sc/social/like/tests/test_plugin_twitter.py index 86b7737d..90d3bfc7 100644 --- a/sc/social/like/tests/test_plugin_twitter.py +++ b/sc/social/like/tests/test_plugin_twitter.py @@ -92,7 +92,7 @@ def test_privacy_plugin_view_html(self): plugin = self.plugin portal = self.portal properties = portal.portal_properties.sc_social_likes_properties - properties.privacy = True + properties.do_not_track = True plugin_view = plugin.view() view = portal.restrictedTraverse(plugin_view) html = view.link() diff --git a/sc/social/like/tests/test_viewlets.py b/sc/social/like/tests/test_viewlets.py index 3996439e..e0742137 100644 --- a/sc/social/like/tests/test_viewlets.py +++ b/sc/social/like/tests/test_viewlets.py @@ -97,18 +97,18 @@ def test_rendermethod_default(self): self.assertEqual(viewlet.render_method, 'plugin') def test_rendermethod_privacy(self): - self.portal.portal_properties.sc_social_likes_properties.privacy = True + self.portal.portal_properties.sc_social_likes_properties.do_not_track = True viewlet = self.viewlet(self.document) self.assertEqual(viewlet.render_method, 'link') def test_rendermethod_privacy_opt_cookie(self): - self.portal.portal_properties.sc_social_likes_properties.privacy = False + self.portal.portal_properties.sc_social_likes_properties.do_not_track = False self.request.cookies['social-optout'] = 'true' viewlet = self.viewlet(self.document) self.assertEqual(viewlet.render_method, 'link') def test_rendermethod_privacy_donottrack(self): - self.portal.portal_properties.sc_social_likes_properties.privacy = False + self.portal.portal_properties.sc_social_likes_properties.do_not_track = False self.request.environ['HTTP_DNT'] = '1' viewlet = self.viewlet(self.document) self.assertEqual(viewlet.render_method, 'link') diff --git a/sc/social/like/upgrades/v3020/profile/propertiestool.xml b/sc/social/like/upgrades/v3020/profile/propertiestool.xml index 2c844199..597c9631 100644 --- a/sc/social/like/upgrades/v3020/profile/propertiestool.xml +++ b/sc/social/like/upgrades/v3020/profile/propertiestool.xml @@ -1,6 +1,6 @@ - +