PyLucid CMS Logo

PyLucid objects

request. PYLUCID class is here: pylucid_project/apps/pylucid/system/pylucid_objects.py

The PYLUCID object added by PyLucidMiddleware (pylucid_project/middlewares/pylucid_objects.py)

↑ Existing attributes  #

Note: Not all attributes exist in every case! e.g. pagetree, pagecontent, pagemeta doesn't exist in pylucid_admin views...

Note:
PYLUCID.default_language_entry and PYLUCID.default_language_code are obsolete!
To get the system default language, use this:

Python
1
2
from pylucid_project.apps.pylucid.models import Language
default_language = Language.objects.get_default()

(It used the language code defined with: settings.LANGUAGE_CODE)

↑ set  #

pagetree, context, page_template, pagecontent would be set in pylucid_project.apps.pylucid/views._render_page()

↑ DEBUG  #

(New in 2548)

If you wand to see, witch attributes where attaches/changed, do this:

0 Kommentare für 'PyLucid objects':
    Es existiert kein Kommentar für 'PyLucid objects'
Kommentar hinterlassen
tag navi api | plugin | pylucid | pylucid v0.9

django-processinfo: 10.4 ms of 447.5 ms (2.3%)