[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/ Merge r26706 through r26708 (incl.):

Philipp von Weitershausen philikon at philikon.de
Fri Jul 23 13:03:32 EDT 2004


Log message for revision 26709:
  Merge r26706 through r26708 (incl.):
  
  - Make request.locale and locale objects usable in security-
    proxied environments
  - typos, cosmetic fixes
  


Changed:
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/dublincore/zopedublincore.py
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/i18n/configure.zcml
  A   Zope3/branches/ZopeX3-3.0/src/zope/app/i18n/locales.zcml
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/publisher/browser/configure.zcml
  U   Zope3/branches/ZopeX3-3.0/src/zope/i18n/interfaces/locales.py


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/dublincore/zopedublincore.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/dublincore/zopedublincore.py	2004-07-23 16:57:56 UTC (rev 26708)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/dublincore/zopedublincore.py	2004-07-23 17:03:32 UTC (rev 26709)
@@ -11,7 +11,8 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
-"""
+"""Zope's Dublin Core Implementation
+
 $Id$
 """
 
@@ -107,7 +108,7 @@
         self._mapping = mapping
 
     def _changed(self):
-        self._p_changed = 1
+        self._p_changed = True
 
     title = ScalarProperty(u'Title')
 

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/i18n/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/i18n/configure.zcml	2004-07-23 16:57:56 UTC (rev 26708)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/i18n/configure.zcml	2004-07-23 17:03:32 UTC (rev 26709)
@@ -75,8 +75,8 @@
     for=".interfaces.ILocalTranslationDomain"
     provides="zope.i18n.interfaces.IMessageImportFilter" />
 
+<include file="locales.zcml" />
 <include package=".xmlrpc" />
 <include package=".browser" />
 
-
 </configure>

Copied: Zope3/branches/ZopeX3-3.0/src/zope/app/i18n/locales.zcml (from rev 26708, Zope3/trunk/src/zope/app/i18n/locales.zcml)

Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/publisher/browser/configure.zcml
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/publisher/browser/configure.zcml	2004-07-23 16:57:56 UTC (rev 26708)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/publisher/browser/configure.zcml	2004-07-23 17:03:32 UTC (rev 26709)
@@ -16,7 +16,7 @@
 <content class="zope.publisher.browser.BrowserRequest">
   <allow
     interface="zope.publisher.interfaces.browser.IBrowserApplicationRequest"
-    attributes="response"
+    attributes="response locale"
     />
   <allow
     interface="zope.component.interfaces.IPresentationRequest" />

Modified: Zope3/branches/ZopeX3-3.0/src/zope/i18n/interfaces/locales.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/i18n/interfaces/locales.py	2004-07-23 16:57:56 UTC (rev 26708)
+++ Zope3/branches/ZopeX3-3.0/src/zope/i18n/interfaces/locales.py	2004-07-23 17:03:32 UTC (rev 26709)
@@ -390,7 +390,7 @@
         value_type=Field(title=u"Time Zone",
                          description=u"This is a ILocaleTimeZone object."))
 
-    def getFormatter(category, calendar='gregorian', length=None, name=None):
+    def getFormatter(category, length=None, name=None, calendar=u'gregorian'):
         """Get the ... XXX"""
 
 class ILocaleCurrency(Interface):



More information about the Zope3-Checkins mailing list