[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/ Make request.locale and all locale objects usable in security-

Philipp von Weitershausen philikon at philikon.de
Fri Jul 23 12:57:02 EDT 2004


Log message for revision 26707:
  Make request.locale and all locale objects usable in security-
  proxied environments, such as ZPT Pages.
  


Changed:
  U   Zope3/trunk/src/zope/app/i18n/configure.zcml
  A   Zope3/trunk/src/zope/app/i18n/locales.zcml
  U   Zope3/trunk/src/zope/app/publisher/browser/configure.zcml


-=-
Modified: Zope3/trunk/src/zope/app/i18n/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/i18n/configure.zcml	2004-07-23 16:56:12 UTC (rev 26706)
+++ Zope3/trunk/src/zope/app/i18n/configure.zcml	2004-07-23 16:57:02 UTC (rev 26707)
@@ -75,8 +75,8 @@
     for=".interfaces.ILocalTranslationDomain"
     provides="zope.i18n.interfaces.IMessageImportFilter" />
 
+<include file="locales.zcml" />
 <include package=".xmlrpc" />
 <include package=".browser" />
 
-
 </configure>

Added: Zope3/trunk/src/zope/app/i18n/locales.zcml
===================================================================
--- Zope3/trunk/src/zope/app/i18n/locales.zcml	2004-07-23 16:56:12 UTC (rev 26706)
+++ Zope3/trunk/src/zope/app/i18n/locales.zcml	2004-07-23 16:57:02 UTC (rev 26707)
@@ -0,0 +1,57 @@
+<configure
+   xmlns="http://namespaces.zope.org/zope">
+
+  <content class="zope.i18n.format.NumberFormat">
+    <allow interface="zope.i18n.interfaces.INumberFormat" />
+  </content>
+
+  <content class="zope.i18n.format.DateTimeFormat">
+    <allow interface="zope.i18n.interfaces.IDateTimeFormat" />
+  </content>
+
+
+  <content class="zope.i18n.locales.LocaleIdentity">
+    <allow interface="zope.i18n.interfaces.locales.ILocaleIdentity" />
+  </content>
+
+  <content class="zope.i18n.locales.LocaleVersion">
+    <allow interface="zope.i18n.interfaces.locales.ILocaleVersion" />
+  </content>
+
+  <content class="zope.i18n.locales.LocaleDisplayNames">
+    <allow interface="zope.i18n.interfaces.locales.ILocaleDisplayNames" />
+  </content>
+
+  <content class="zope.i18n.locales.LocaleTimeZone">
+    <allow interface="zope.i18n.interfaces.locales.ILocaleTimeZone" />
+  </content>
+
+  <content class="zope.i18n.locales.LocaleFormat">
+    <allow interface="zope.i18n.interfaces.locales.ILocaleFormat" />
+  </content>
+
+  <content class="zope.i18n.locales.LocaleFormatLength">
+    <allow interface="zope.i18n.interfaces.locales.ILocaleFormatLength" />
+  </content>
+
+  <content class="zope.i18n.locales.LocaleCalendar">
+    <allow interface="zope.i18n.interfaces.locales.ILocaleCalendar" />
+  </content>
+
+  <content class="zope.i18n.locales.LocaleDates">
+    <allow interface="zope.i18n.interfaces.locales.ILocaleDates" />
+  </content>
+
+  <content class="zope.i18n.locales.LocaleCurrency">
+    <allow interface="zope.i18n.interfaces.locales.ILocaleCurrency" />
+  </content>
+
+  <content class="zope.i18n.locales.LocaleNumbers">
+    <allow interface="zope.i18n.interfaces.locales.ILocaleNumbers" />
+  </content>
+
+  <content class="zope.i18n.locales.Locale">
+    <allow interface="zope.i18n.interfaces.locales.ILocale" />
+  </content>
+
+</configure>
\ No newline at end of file

Modified: Zope3/trunk/src/zope/app/publisher/browser/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/publisher/browser/configure.zcml	2004-07-23 16:56:12 UTC (rev 26706)
+++ Zope3/trunk/src/zope/app/publisher/browser/configure.zcml	2004-07-23 16:57:02 UTC (rev 26707)
@@ -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" />



More information about the Zope3-Checkins mailing list