root/trunk/pylucid_project/PyLucid/plugins_internal/back_links/back_links_cfg.py

Revision 1719, 1.5 KB (checked in by JensDiemer, 20 months ago)

change "from django import newforms as forms" to "from django import forms":  http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Movednewformstoforms

  • Property svn:eol-style set to LF
Line 
1# -*- coding: utf-8 -*-
2
3#_____________________________________________________________________________
4# meta information
5__author__              = "Jens Diemer, Manuel Herzog"
6__url__                 = "http://www.PyLucid.org"
7__description__         = "A small Backlink generator"
8__long_description__ = """
9Puts links to every lower level page into the CMS page.
10"""
11
12#_____________________________________________________________________________
13# preferences
14
15from django import forms
16from django.utils.translation import ugettext as _
17
18class PreferencesForm(forms.Form):
19    print_last_page = forms.BooleanField(
20        initial = True, required=False,
21        help_text = _(
22            "If checked the actual page will be the last page in the bar."
23            " Otherwise the parentpage."
24        ),
25    )
26    print_index = forms.BooleanField(
27        initial = False, required=False,
28        help_text = _('If checked every back link bar starts with a link to "index_url"'),
29    )
30    index_url = forms.CharField(
31        initial = "/",
32        help_text = _("The url used for print_index. Note: not verify if the url exists."),
33    )
34    index = forms.CharField(
35        initial = _("Index"),
36        help_text = _('the name that is printed for the indexpage'),
37    )
38
39#_____________________________________________________________________________
40# plugin administration data
41
42plugin_manager_data = {
43    "lucidTag" : {
44        "must_login"    : False,
45        "must_admin"    : False,
46    }
47}
Note: See TracBrowser for help on using the browser.