source: ZMS/trunk/IZMSFormatProvider.py @ 1557

Revision 1557, 1.6 KB checked in by zmsdev, 11 months ago (diff)

removed old zms artefacts

Line 
1################################################################################
2# IZMSFormatProvider.py
3#
4# This program is free software; you can redistribute it and/or
5# modify it under the terms of the GNU General Public License
6# as published by the Free Software Foundation; either version 2
7# of the License, or (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17################################################################################
18
19# Imports.
20from zope.interface import Interface
21
22class IZMSFormatProvider(Interface):
23
24  def getTextFormatDefault(self):
25    """
26    Returns id of default text-format
27    @rtype: C{string}
28    """
29 
30  def getTextFormat(self, id, REQUEST):
31    """
32    Returns text-format specified by given id
33    @param REQUEST: the triggering request
34    @type REQUEST: ZPublisher.HTTPRequest
35    """
36
37  def getTextFormats(self, REQUEST):
38    """
39    Returns list of all text-formats
40    @param REQUEST: the triggering request
41    @type REQUEST: ZPublisher.HTTPRequest
42    @rtype: C{list}
43    """
44
45  def getCharFormats(self):
46    """
47    Returns list of all character-formats
48    @rtype: C{list}
49    """
Note: See TracBrowser for help on using the repository browser.