[Zope3-checkins] CVS: Zope3/src/zope/app/applicationcontrol/browser
- translationdomaincontrol.pt:1.1 translationdomaincontrol.py:1.1
translationdomaincontrol.pyc:1.1 configure.zcml:1.2
globaltranslationservicecontrol.pt:NONE
globaltranslationservicecontrol.py:NONE
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Mar 8 18:33:39 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/applicationcontrol/browser
In directory cvs.zope.org:/tmp/cvs-serv4343/src/zope/app/applicationcontrol/browser
Modified Files:
configure.zcml
Added Files:
translationdomaincontrol.pt translationdomaincontrol.py
translationdomaincontrol.pyc
Removed Files:
globaltranslationservicecontrol.pt
globaltranslationservicecontrol.py
Log Message:
Updated the application control to reflect API changes. There are no tests for
this code at all. :(
=== Added File Zope3/src/zope/app/applicationcontrol/browser/translationdomaincontrol.pt ===
<html metal:use-macro="views/standard_macros/page">
<head>
<title i18n:translate="">ZGlobal Transaction Service Controller</title>
</head>
<body>
<div metal:fill-slot="body">
<p tal:define="status view/reloadCatalogs"
tal:condition="status"
tal:content="status" />
<table>
<tr>
<th i18n:translate="">Domain</th>
<th i18n:translate="">Language</th>
<th i18n:translate="">Files</th>
<th> </th>
</tr>
<tr tal:repeat="catalogInfo view/getCatalogsInfo">
<td tal:content="catalogInfo/domain"></td>
<td tal:content="catalogInfo/language"></td>
<td>
<div tal:repeat="fileName catalogInfo/fileNames"
tal:content="fileName"></div>
</td>
<td>
<a tal:attributes="href string:?RELOAD=&domain=${catalogInfo/domain}&language=${catalogInfo/language}"
i18n:translate="reload-button">Reload</a>
</td>
</tr>
</table>
</div>
</body>
</html>
=== Added File Zope3/src/zope/app/applicationcontrol/browser/translationdomaincontrol.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 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.
#
##############################################################################
""" Server Control View
$Id: translationdomaincontrol.py,v 1.1 2004/03/08 23:33:39 srichter Exp $
"""
from zope.app.applicationcontrol.interfaces import ITranslationDomainControl
from zope.app.i18n import ZopeMessageIDFactory as _
class TranslationDomainControlView:
def getCatalogsInfo(self):
control = ITranslationDomainControl(self.context)
return control.getCatalogsInfo()
def reloadCatalogs(self):
"""Do the reloading !"""
status = ''
if 'RELOAD' in self.request:
language = self.request.get('language')
domain = self.request.get('domain')
control = ITranslationDomainControl(self.context)
control.reloadCatalogs(domain, language)
status = _('Message Catalog successfully reloaded.')
return status
=== Added File Zope3/src/zope/app/applicationcontrol/browser/translationdomaincontrol.pyc ===
<Binary-ish file>
=== Zope3/src/zope/app/applicationcontrol/browser/configure.zcml 1.1 => 1.2 ===
--- Zope3/src/zope/app/applicationcontrol/browser/configure.zcml:1.1 Mon Mar 1 08:43:24 2004
+++ Zope3/src/zope/app/applicationcontrol/browser/configure.zcml Mon Mar 8 18:33:39 2004
@@ -5,8 +5,7 @@
<pages
for="zope.app.applicationcontrol.interfaces.IApplicationControl"
permission="zope.ManageApplication"
- class=
- "zope.app.applicationcontrol.browser.servercontrol.ServerControlView">
+ class=".servercontrol.ServerControlView">
<page name="ServerControlForm.html" template="server-control.pt"
menu="zmi_views" title="Server Control" />
@@ -19,24 +18,24 @@
menu="zmi_views"
title="Runtime Information"
template="runtimeinfo.pt"
- class="zope.app.applicationcontrol.browser.runtimeinfo.RuntimeInfoView"
+ class=".runtimeinfo.RuntimeInfoView"
permission="zope.ManageApplication"/>
<page
for="zope.app.applicationcontrol.interfaces.IApplicationControl"
name="ZODBControl.html"
template="zodbcontrol.pt"
- class="zope.app.applicationcontrol.browser.zodbcontrol.ZODBControlView"
+ class=".zodbcontrol.ZODBControlView"
permission="zope.ManageApplication"
menu="zmi_views" title="ZODB Control"/>
<page
for="zope.app.applicationcontrol.interfaces.IApplicationControl"
- name="GlobalTSControl.html"
- template="globaltranslationservicecontrol.pt"
- class="zope.app.applicationcontrol.browser.globaltranslationservicecontrol.GlobalTSControlView"
+ name="TranslationDomain.html"
+ template="translationdomaincontrol.pt"
+ class=".translationdomaincontrol.TranslationDomainControlView"
permission="zope.ManageApplication"
- menu="zmi_views" title="Global Translation Service Control"/>
+ menu="zmi_views" title="Translation Domain Control"/>
<!-- add a action tab to the root folder for navigation -->
<menuItem
=== Removed File Zope3/src/zope/app/applicationcontrol/browser/globaltranslationservicecontrol.pt ===
=== Removed File Zope3/src/zope/app/applicationcontrol/browser/globaltranslationservicecontrol.py ===
More information about the Zope3-Checkins
mailing list