This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I place this in the public domain | |
# This only handles non-nested lists, emphasis, headings and horizontal rules (which are converted to page breaks) | |
# Sufficient for converting Markdown generated HTML to reportlab flowables... | |
import xml.sax as sax | |
def html_to_rl(html, styleSheet): | |
elements = list() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cms_app.py | |
from cms.app_base import CMSApp | |
from cms.apphook_pool import apphook_pool | |
from django.utils.translation import ugettext_lazy as _ | |
class ProdajaApp(CMSApp): | |
name = _("Prodaja App") | |
urls = ["prodaja.urls"] | |
apphook_pool.register(ProdajaApp) |