python-tldp/tldp/doctypes/example.py

32 lines
775 B
Python
Raw Normal View History

2016-02-12 21:25:19 +00:00
#! /usr/bin/python
2016-02-18 21:25:02 +00:00
# -*- coding: utf8 -*-
2016-02-12 21:25:19 +00:00
from __future__ import absolute_import, division, print_function
2016-02-12 21:25:19 +00:00
import logging
2016-02-25 20:29:55 +00:00
logger = logging.getLogger(__name__)
2016-02-12 21:25:19 +00:00
from tldp.doctypes.common import BaseDoctype
class Frobnitz(BaseDoctype):
2016-02-12 21:25:19 +00:00
formatname = 'Frobnitz'
extensions = ['.fb']
signatures = ['{{Frobnitz-Format 2.3}}']
tools = ['executablename', 'another']
def create_txt(self):
logger.info("Creating txt for %s", self.source.stem)
def create_pdf(self):
logger.info("Creating PDF for %s", self.source.stem)
def create_html(self):
logger.info("Creating chunked HTML for %s", self.source.stem)
def create_htmls(self):
logger.info("Creating single page HTML for %s", self.source.stem)
#
# -- end of file