[Zope3-checkins] CVS: Zope3/src/zope/app/applicationcontrol -
globaltranslationservicecontrol.py:1.1 configure.zcml:1.5
Godefroid Chapelle
gotcha at swing.be
Tue Aug 12 12:50:15 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/applicationcontrol
In directory cvs.zope.org:/tmp/cvs-serv14789
Modified Files:
configure.zcml
Added Files:
globaltranslationservicecontrol.py
Log Message:
added view in process manager to allow
to reload message ids catalogs
without restarting server
=== Added File Zope3/src/zope/app/applicationcontrol/globaltranslationservicecontrol.py ===
##############################################################################
#
# Copyright (c) 2003 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""ZODB Control
$Id: globaltranslationservicecontrol.py,v 1.1 2003/08/12 15:50:09 gotcha Exp $
"""
import os
from zope.interface import implements
from zope.app.interfaces.applicationcontrol import \
IApplicationControl, IGlobalTSControl
from zope.i18n.globaltranslationservice import translationService
class GlobalTSControl:
implements(IGlobalTSControl)
__used_for__ = IApplicationControl
def __init__(self, context):
self.context = context
def getCatalogsInfo(self):
"""See zope.app.interfaces.applicationControl.IGlobalTSControl"""
return translationService.getCatalogsInfo()
def reloadCatalogs(self, catalogName):
"""See zope.app.interfaces.applicationControl.IGlobalTSControl"""
return translationService.reloadCatalogs(catalogName)
=== Zope3/src/zope/app/applicationcontrol/configure.zcml 1.4 => 1.5 ===
--- Zope3/src/zope/app/applicationcontrol/configure.zcml:1.4 Sun Aug 3 15:08:12 2003
+++ Zope3/src/zope/app/applicationcontrol/configure.zcml Tue Aug 12 11:50:09 2003
@@ -23,6 +23,12 @@
factory="zope.app.applicationcontrol.zodbcontrol.ZODBControl"
permission="zope.ManageApplication" />
+ <adapter
+ for="zope.app.interfaces.applicationcontrol.IApplicationControl"
+ provides="zope.app.interfaces.applicationcontrol.IGlobalTSControl"
+ factory="zope.app.applicationcontrol.globaltranslationservicecontrol.GlobalTSControl"
+ permission="zope.ManageApplication" />
+
<utility
component="zope.app.applicationcontrol.zopeversion.ZopeVersionUtility"
provides="zope.app.interfaces.applicationcontrol.IZopeVersion" />
More information about the Zope3-Checkins
mailing list