aboutsummaryrefslogtreecommitdiffstats
path: root/lib/python2.7/site-packages/Twisted-12.2.0-py2.7-linux-x86_64.egg/twisted/plugins/twisted_lore.py
blob: 1ab57a5d36c8ae45c2ab79f2f45bce1955873ed8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from zope.interface import implements

from twisted.lore.scripts.lore import IProcessor
from twisted.plugin import IPlugin

class _LorePlugin(object):
    implements(IPlugin, IProcessor)

    def __init__(self, name, moduleName, description):
        self.name = name
        self.moduleName = moduleName
        self.description = description

DefaultProcessor = _LorePlugin(
    "lore",
    "twisted.lore.default",
    "Lore format")

MathProcessor = _LorePlugin(
    "mlore",
    "twisted.lore.lmath",
    "Lore format with LaTeX formula")

SlideProcessor = _LorePlugin(
    "lore-slides",
    "twisted.lore.slides",
    "Lore for slides")

ManProcessor = _LorePlugin(
    "man",
    "twisted.lore.man2lore",
    "UNIX Man pages")

NevowProcessor = _LorePlugin(
    "nevow",
    "twisted.lore.nevowlore",
    "Nevow for Lore")