Changeset 4043

Show
Ignore:
Timestamp:
07/21/08 08:26:48 (4 months ago)
Author:
doki_pen
Message:

fixed another stupid checkin mistake. sorry

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • announcerplugin/0.11/announcerplugin/formatters/ticket_email.py

    r4029 r4043  
    183183            long_changes = long_changes, 
    184184            short_changes = short_changes, 
    185             attachment= event.attachment             
     185            attachment= event.attachment 
    186186        ) 
    187187         
    188         output = chrome.render_template(None, "ticket_email_mimic.html", data, content_type="text/html", fragment = True) 
    189          
    190         return output.render() 
     188        chrome = Chrome(self.env) 
     189        dirs = [] 
     190        for provider in chrome.template_providers: 
     191            dirs += provider.get_templates_dirs() 
     192         
     193        templates = TemplateLoader(dirs, variable_lookup='lenient') 
     194         
     195        template = templates.load('ticket_email_mimic.html', cls=MarkupTemplate) 
     196         
     197        if template: 
     198            stream = template.generate(**data) 
     199            output = stream.render() 
     200         
     201        return output