| 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__ = """ |
|---|
| 9 | Puts links to every lower level page into the CMS page. |
|---|
| 10 | """ |
|---|
| 11 | |
|---|
| 12 | #_____________________________________________________________________________ |
|---|
| 13 | # preferences |
|---|
| 14 | |
|---|
| 15 | from django import forms |
|---|
| 16 | from django.utils.translation import ugettext as _ |
|---|
| 17 | |
|---|
| 18 | class 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 | |
|---|
| 42 | plugin_manager_data = { |
|---|
| 43 | "lucidTag" : { |
|---|
| 44 | "must_login" : False, |
|---|
| 45 | "must_admin" : False, |
|---|
| 46 | } |
|---|
| 47 | } |
|---|