Show
Ignore:
Timestamp:
11/07/08 16:05:38 (5 years ago)
Author:
Nicolas ?vrard <nicoe@…>
Branch:
default
Message:

Do not use the entrypoint stuff anymore.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • relatorio/templates/opendocument.py

    r71 r72  
    3535from genshi.template import MarkupTemplate 
    3636 
    37 from relatorio.templates import RelatorioStream 
    38 from relatorio.reporting import Report 
     37from relatorio.templates.base import RelatorioStream 
     38from relatorio.reporting import Report, MIMETemplateLoader 
    3939 
    4040GENSHI_EXPR = re.compile(r'''((/)?(for|choose|otherwise|when|if|with)\s*(\s(\w+)=["'](.*)["']|$)|.*)''') 
     
    121121 
    122122    def insert_directives(self, content): 
    123         """adds to genshi directives, handle the images and the innerdocs. 
     123        """adds the genshi directives, handle the images and the innerdocs. 
    124124        """ 
    125125        tree = lxml.etree.parse(StringIO(content)) 
     
    327327 
    328328        return self.new_oo.getvalue() 
     329 
     330MIMETemplateLoader.add_factory('oo.org', Template)