Show
Ignore:
Timestamp:
02/27/08 16:21:32 (2 years ago)
Author:
JensDiemer
Message:

NEW internal page handling:
-internal pages doesn't store in the database.
-additional CSS/JS files linked as normal static files.
-new path constants in the settings.py
See also:  http://pylucid.org/phpBB2/viewtopic.php?t=198
TODO: refactory the insall section and the plugin manager for this. Remove the unused InternalPage? model.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/plugins_internal/page_style/page_style.py

    r1425 r1449  
    4242from PyLucid.system.BasePlugin import PyLucidBasePlugin 
    4343from PyLucid.tools.content_processors import render_string_template 
    44 from PyLucid.db.internal_pages import get_internal_page 
    4544 
    4645class page_style(PyLucidBasePlugin): 
     
    103102        return response 
    104103 
    105  
     104from PyLucid.system.internal_page import get_internal_page, InternalPageNotFound 
    106105def replace_add_data(context, content): 
    107106    """ 
     
    110109    Note: The tag added in PyLucid.plugins_internal.page_style 
    111110    """ 
    112  
    113     internal_page = get_internal_page("page_style", "add_data") 
    114     internal_page_content = internal_page.content_html 
     111    internal_page_content = get_internal_page(context, "page_style", "add_data") 
    115112 
    116113    context = {