Menu:

Backwards-incompatible changes

Here you find a list of backwards-incompatible changes in PyLucid since the last release.

General tip for updating: Go into the _install section and do:

Please, comment any problems!


02.05.2008 - rewriting preferences (under development)

With changeset 1544 , changeset 1548 and 1555 we change many things around the Preferences. To use the current trunk, do these steps:

You find the new Preference Editor under "sub menu/miscellaneous"

25.03.2008 - new middlewares (updated 28.03.2008!)

With changeset 1505 we implement a work-a-round for the django middleware problematic (see also ticket 87 ).

Update: with changeset 1510 & changeset 1511 we refactor the cache mechanism and added a new cache middleware.

You must update the MIDDLEWARE_CLASSES part of your settings.py:

Python
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
MIDDLEWARE_CLASSES = (
    # Insert a statistic line into the generated page:
    'PyLucid.middlewares.pagestats.PageStatsMiddleware',


    # PyLucidCommonMiddleware loads the django middlewares:
    #    - 'django.contrib.sessions.middleware.SessionMiddleware'
    #    - 'django.contrib.auth.middleware.AuthenticationMiddleware'
    #    - 'django.middleware.locale.LocaleMiddleware'
    'PyLucid.middlewares.common.PyLucidCommonMiddleware',



    # Cache all anonymous cms page request, if CACHE_BACKEND worked.
    'PyLucid.middlewares.cache.CacheMiddleware',



    'django.middleware.common.CommonMiddleware',
    'django.middleware.doc.XViewMiddleware',


    # Add a human readable anchor to every html headline:
    'PyLucid.middlewares.headline_anchor.HeadlineAnchor',
)

25.03.2008 - Headline anchor

Not really a Backwards-incompatible change.

With changeset 1503 we add a new middleware called 'HeadlineAnchor'. It's inserted a anchor permalink to all html headlines. If you will use it, you must change you settings and you should edit your global Stylesheet.

You must activate the HeadlineAnchor middleware before the PageStatsMiddleware:

Python
1
2
3
4
5
6
7
8
9
...
MIDDLEWARE_CLASSES = (
    ...
    # Add a human readable anchor to every html headline:
    'PyLucid.middlewares.headline_anchor.HeadlineAnchor',

    # Insert a statistic line into the generated page:
    'PyLucid.middlewares.pagestats.PageStatsMiddleware',
)

You can add this to your global Stylesheet:

CSS
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
.anchor {
  text-decoration:none;
}
.anchor:hover {
  color:#808080;
  text-decoration:underline;
}
.anchor:hover:after {
   content:" #";
}

04.03.2008 - Page archive

For the new page archive you must go into the _install section and do this:

28.02.2008 - new unit test handling

To use the new unitests, you must insert this into your settings.py:

Python
1
2
# Unit test runner
TEST_RUNNER = 'tests.run_tests'

More information on the The PyLucid unittests documentation

27.02.2008 - new internal page handling

The new internal page handling needs some changes.

Please consider the new place for the internal page files: ./media/PyLucid/internal_page/

We change some media path information in the settings.py: settings_example.py diff
You must add this:

Python
1
2
3
PYLUCID_MEDIA_DIR = "PyLucid"
INTERNAL_PAGE_DIR = "internal_page"
CUSTOM_INTERNAL_PAGE_DIR = "custom"

14.02.2008 - user permission

We changed a little bit the user permissions in changeset 1409

The plugin config variable "must_admin" is not recognized.
A user can only access a "must_admin" method if he has the flag "is_staff" or "is_superuser".

Now, the sub_menu filter many entries if the user is not a "is_staff" or "is_superuser".

See also:

13.02.2008 - new filemanager plugin

For the new filemanager plugin you need a new tuple in your settings.py:

Diff
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
Index: trunk/pylucid/PyLucid/settings_example.py
===================================================================
--- trunk/pylucid/PyLucid/settings_example.py (revision 1340)
+++ trunk/pylucid/PyLucid/settings_example.py (revision 1388)
@@ -189,4 +189,11 @@
 #     Examples-3: "http://django.media.your_domain.net/"
 ADMIN_MEDIA_PREFIX = "/django/contrib/admin/media/"
+
+# Base path for the filemanager plugin
+# You can add more path for the plugin.
+FILEMANAGER_BASEPATHS = (
+    MEDIA_ROOT,
+    #"./static/",
+)
 
 """

http://pylucid.net:8080/pylucid/changeset/1388/trunk/pylucid/PyLucid/settings_example.py

You must install + activate the plugin "filemanager" with the "Plugin administration".
Also you must reinit the plugin "admin_menu".

See also:

04.01.2008 - main_menu plugin

We changed the main_menu plugin for W3C valid output.
You must reinit the plugin in the _install section!

Maybe you must change the Stylesheet anchor from "a .current" to "a.current" in your global CSS.

More info soon.

We added some new features in the backlinks plugin. You must reinit the plugin with the "Plugin Administration" to insert the new internal pages for the plugin output.

The new features are documented here

11.12.2007 - "INSTALL_PASS_HASH" renamed to "INSTALL_PASSWORD_HASH"

We renamed the settings.py variable "INSTALL_PASS_HASH" to "INSTALL_PASSWORD_HASH".
Because, now the name contains the word "PASSWORD" and django will hide the value from a debug traceback.
See also: http://www.djangoproject.com/documentation/settings/#debug


See also: