Permalink
Browse files

Set new instance defaults to be equal to the gs profile

svn path=/PloneLanguageTool/trunk/; revision=237846
  • Loading branch information...
1 parent c71d526 commit a3a6523c359bd53a6d4c5ad73ce5743d55a76c40 @lrowe lrowe committed Apr 19, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 Products/PloneLanguageTool/LanguageTool.py
@@ -46,6 +46,7 @@ class LanguageTool(UniqueObject, SimpleItem):
security = ClassSecurityInfo()
+ # These apply to existing instances when code is upgraded
supported_langs = ['en']
use_path_negotiation = 0
use_content_negotiation = 0
@@ -74,17 +75,18 @@ class LanguageTool(UniqueObject, SimpleItem):
manage_configForm = PageTemplateFile('www/config', globals())
def __init__(self):
+ # These apply to new instances
self.id = 'portal_languages'
self.use_content_negotiation = 0
self.use_path_negotiation = 0
self.use_cookie_negotiation = 1
- self.set_cookie_everywhere = 1
+ self.set_cookie_everywhere = 0
self.authenticated_users_only = 0
- self.use_request_negotiation = 1
+ self.use_request_negotiation = 0
self.use_cctld_negotiation = 0
self.use_subdomain_negotiation = 0
self.use_combined_language_codes = 0
- self.force_language_urls = 1
+ self.force_language_urls = 0
self.allow_content_language_fallback = 0
self.display_flags = 0
self.start_neutral = 0

0 comments on commit a3a6523

Please sign in to comment.