Show
Ignore:
Timestamp:
02/11/09 16:32:47 (13 months ago)
Author:
JensDiemer
Message:

NEW: Overwrite the used stylesheet/template...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid_project/PyLucid/index.py

    r1760 r1821  
    3838                                                        render_string_template 
    3939from PyLucid.plugins_internal.page_style.page_style import replace_add_data 
     40 
     41# ToDo: get_template should be move into a better place: 
     42from PyLucid.plugins_internal.page_style.page_style import get_template 
    4043 
    4144 
     
    128131    context["PAGE"].content = page_content 
    129132 
    130     template = current_page.template 
     133    # Get the template instance: consider the overwrite from page_style.switch() 
     134    # or get the template from the current page object. 
     135    template = get_template(request) 
     136     
     137    # Get the content from the model instance 
    131138    template_content = template.content 
    132139