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/install/BaseInstall.py

    r1343 r1449  
    44""" 
    55 
    6 import sys, os 
     6import sys, os, posixpath 
    77 
    88from PyLucid import PYLUCID_VERSION_STRING 
     
    107107 
    108108        self.request = request 
     109 
     110        media_url = posixpath.join( 
     111            settings.MEDIA_URL, settings.PYLUCID_MEDIA_DIR, "" 
     112        ) # With appended slash, for backward compatible 
    109113        self.context = { 
    110114            "output": "", 
    111115            "request": request, 
    112             "PyLucid_media_url": settings.PYLUCID_MEDIA_URL, 
     116            "PyLucid_media_url": media_url, 
    113117            "version": PYLUCID_VERSION_STRING, 
    114118            "current_working_dir": os.getcwd(),