source: communesplone/CPComarquage/tags/1.0/config.py @ 2503

Revision 2503, 2.7 KB checked in by gbastien, 2 years ago (diff)

Completed tag before announcing stable release 1.0

  • Property svn:eol-style set to native
Line 
1# -*- coding: utf-8 -*-
2#
3# File: config.py
4#
5# Copyright (c) 2006 by CommunesPlone
6#
7# GNU General Public License (GPL)
8#
9# This program is free software; you can redistribute it and/or
10# modify it under the terms of the GNU General Public License
11# as published by the Free Software Foundation; either version 2
12# of the License, or (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program; if not, write to the Free Software
21# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22# 02110-1301, USA.
23#
24
25__author__ = """Gauthier BASTIEN <gbastien@commune.sambreville.be>"""
26__docformat__ = 'plaintext'
27
28#
29# Product configuration. This contents of this module will be imported into
30# __init__.py and every content type module.
31#
32# If you wish to perform custom configuration, you may put a file AppConfig.py
33# in your product's root directory. This will be included in this file if
34# found.
35#
36from Products.CMFCore.permissions import setDefaultRoles
37
38PROJECTNAME = "CPComarquage"
39
40# Check for Plone 2.1
41try:
42    from Products.CMFPlone.migrations import v2_1
43except ImportError:
44    HAS_PLONE21 = False
45else:
46    HAS_PLONE21 = True
47   
48# Permissions
49DEFAULT_ADD_CONTENT_PERMISSION = "Add portal content"
50setDefaultRoles(DEFAULT_ADD_CONTENT_PERMISSION, ('Manager', 'Owner'))
51
52product_globals=globals()
53
54# Dependencies of Products to be installed by quick-installer
55# override in custom configuration
56DEPENDENCIES = []
57
58# Dependend products - not quick-installed - used in testcase
59# override in custom configuration
60PRODUCT_DEPENDENCIES = []
61
62# You can overwrite these two in an AppConfig.py:
63# STYLESHEETS = [{'id': 'my_global_stylesheet.css'},
64#                {'id': 'my_contenttype.css',
65#                 'expression': 'python:object.getTypeInfo().getId() == "MyType"}]
66# You can do the same with JAVASCRIPTS.
67STYLESHEETS = []
68JAVASCRIPTS = []
69
70##code-section config-bottom #fill in your manual code here
71#the name of the map for CMFSin
72CHANNELNAME = "wal"
73CHANNELURL = "http://www.wallonie.be/fr/comarquage.rss"
74MAPNAME = "wal"
75#the maximum of lines we want to read in the RSS
76MAXRSS = 999
77
78DEPENDENCIES = ['CMFSin']
79STYLESHEETS = [{'id': 'cpcomarquage.css',
80                'title': 'CSS for CPComarquage'}]
81##/code-section config-bottom
82
83
84# load custom configuration not managed by ArchGenXML
85try:
86    from Products.CPComarquage.AppConfig import *
87except ImportError:
88    pass
89
90# End of config.py
Note: See TracBrowser for help on using the repository browser.