~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/utilities/xpi_po_exporter.py

  • Committer: Maris Fogels
  • Date: 2010-07-26 16:00:01 UTC
  • mfrom: (11227 launchpad)
  • mto: This revision was merged to the branch mainline in revision 11240.
  • Revision ID: maris.fogels@canonical.com-20100726160001-mfm6zejjwolkv9e6
MergeĀ fromĀ devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009-2010 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
# pylint: disable-msg=W0231
7
7
__metaclass__ = type
8
8
 
9
9
__all__ = [
10
 
    'XPIPOExporter'
 
10
    'XPIPOExporter',
11
11
    ]
12
12
 
13
13
from zope.interface import implements
24
24
    """Support class for exporting XPI files as .po files."""
25
25
    implements(ITranslationFormatExporter)
26
26
 
 
27
    format = TranslationFileFormat.XPIPO
 
28
 
27
29
    def __init__(self, context=None):
28
30
        super(XPIPOExporter, self).__init__(context=context)
29
31
        # 'context' is ignored because it's only required by the way the