1
##############################################################################
3
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
6
# This software is subject to the provisions of the Zope Public License,
7
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
8
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
9
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
10
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
11
# FOR A PARTICULAR PURPOSE.
13
##############################################################################
14
"""Translation Domain XML-RPC Methods
16
$Id: methods.py 27322 2004-08-28 00:59:04Z jim $
18
__docformat__ = 'restructuredtext'
20
from zope.app.publisher.xmlrpc import XMLRPCView
22
class Methods(XMLRPCView):
24
def getAllLanguages(self):
25
return self.context.getAllLanguages()
27
def getMessagesFor(self, languages):
29
for msg in self.context.getMessages():
30
if msg['language'] in languages: