-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
executable file
·62 lines (48 loc) · 2.24 KB
/
config.py
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#! /usr/bin/env python
# -*- coding: UTF-8 -*-
# This file is part of PyCo.
#
# PyCo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# PyCo is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with PyCo. If not, see <http://www.gnu.org/licenses/>.
# The base path of the pyco installation where the index.py and this file are
# located.
settings['base_path'] = '/var/www/lab.sh'
# The name of the PyCo script.
settings['base_name'] = 'index.py'
# The title of the web site used by the template to define the page title.
settings['site_title'] = 'lab.sh'
# The base bath of the pages tree. All sub folders and file in this directory
# will be handled as items of the page.
settings['pages_path'] = settings['base_path'] + '/pages'
# Define specail pages. These pages have some special functions:
# not_found - the error page used for wrong links
settings['pages_special'] = {}
settings['pages_special']['not_found'] = '/404'
# The name of the order filed of extended file attributes
# In most cases the name should be prefixed by 'user.'
settings['pages_order_xattr'] = 'user.pyco.order'
# The name of the file defining the order. If no order field should be used, it
# can be left None. If the file exists in a sub-directory, it will disable
# xattr ordering.
settings['pages_order_file'] = None
# Set of pages ignored in trees, listings, etc...
settings['pages_ignored'] = []
settings['pages_ignored'].append(settings['pages_special']['not_found'])
settings['pages_ignored'].append(settings['pages_order_file'])
settings['pages_ignored'].append('/Impressum')
# The base path of the template
settings['template_path'] = settings['base_path'] + '/template'
# The name of the template
settings['template_name'] = 'main.html'
# The base path of the rendere plugins
settings['renderers_path'] = settings['base_path'] + '/renderers'