Exemplo n.º 1
0
 def updateWidgets(self):
     try:
         super(DiscussionSettingsEditForm, self).updateWidgets()
     except KeyError:
         # upgrade profile not visible in prefs_install_products_form
         # provide auto-upgrade
         update_registry(self.context)
         super(DiscussionSettingsEditForm, self).updateWidgets()
     self.widgets['globally_enabled'].label = _(u"Enable Comments")
     self.widgets['anonymous_comments'].label = _(u"Anonymous Comments")
     self.widgets['show_commenter_image'].label = _(u"Commenter Image")
     self.widgets['moderator_notification_enabled'].label = \
         _(u"Moderator Email Notification")
     self.widgets['user_notification_enabled'].label = \
         _(u"User Email Notification")
Exemplo n.º 2
0
 def updateWidgets(self):
     try:
         super(DiscussionSettingsEditForm, self).updateWidgets()
     except KeyError:
         # upgrade profile not visible in prefs_install_products_form
         # provide auto-upgrade
         update_registry(self.context)
         super(DiscussionSettingsEditForm, self).updateWidgets()
     self.widgets['globally_enabled'].label = _(u"Enable Comments")
     self.widgets['anonymous_comments'].label = _(u"Anonymous Comments")
     self.widgets['show_commenter_image'].label = _(u"Commenter Image")
     self.widgets['moderator_notification_enabled'].label = \
         _(u"Moderator Email Notification")
     self.widgets['user_notification_enabled'].label = \
         _(u"User Email Notification")