| 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 | # |
|---|
| 36 | from Products.CMFCore.permissions import setDefaultRoles |
|---|
| 37 | |
|---|
| 38 | PROJECTNAME = "CPComarquage" |
|---|
| 39 | |
|---|
| 40 | # Check for Plone 2.1 |
|---|
| 41 | try: |
|---|
| 42 | from Products.CMFPlone.migrations import v2_1 |
|---|
| 43 | except ImportError: |
|---|
| 44 | HAS_PLONE21 = False |
|---|
| 45 | else: |
|---|
| 46 | HAS_PLONE21 = True |
|---|
| 47 | |
|---|
| 48 | # Permissions |
|---|
| 49 | DEFAULT_ADD_CONTENT_PERMISSION = "Add portal content" |
|---|
| 50 | setDefaultRoles(DEFAULT_ADD_CONTENT_PERMISSION, ('Manager', 'Owner')) |
|---|
| 51 | |
|---|
| 52 | product_globals=globals() |
|---|
| 53 | |
|---|
| 54 | # Dependencies of Products to be installed by quick-installer |
|---|
| 55 | # override in custom configuration |
|---|
| 56 | DEPENDENCIES = [] |
|---|
| 57 | |
|---|
| 58 | # Dependend products - not quick-installed - used in testcase |
|---|
| 59 | # override in custom configuration |
|---|
| 60 | PRODUCT_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. |
|---|
| 67 | STYLESHEETS = [] |
|---|
| 68 | JAVASCRIPTS = [] |
|---|
| 69 | |
|---|
| 70 | ##code-section config-bottom #fill in your manual code here |
|---|
| 71 | #the name of the map for CMFSin |
|---|
| 72 | CHANNELNAME = "wal" |
|---|
| 73 | CHANNELURL = "http://www.wallonie.be/fr/comarquage.rss" |
|---|
| 74 | MAPNAME = "wal" |
|---|
| 75 | #the maximum of lines we want to read in the RSS |
|---|
| 76 | MAXRSS = 999 |
|---|
| 77 | |
|---|
| 78 | DEPENDENCIES = ['CMFSin'] |
|---|
| 79 | STYLESHEETS = [{'id': 'cpcomarquage.css', |
|---|
| 80 | 'title': 'CSS for CPComarquage'}] |
|---|
| 81 | ##/code-section config-bottom |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | # load custom configuration not managed by ArchGenXML |
|---|
| 85 | try: |
|---|
| 86 | from Products.CPComarquage.AppConfig import * |
|---|
| 87 | except ImportError: |
|---|
| 88 | pass |
|---|
| 89 | |
|---|
| 90 | # End of config.py |
|---|