source: publico/ILPortal/trunk/config.py @ 2336

Última Alteração nesse arquivo desde 2336 foi 2336, incluída por paulovieira, 14 anos atrás

correção no Texto da pasta e adição do indice getPartido no Parlamentar

File size: 3.8 KB
Linha 
1# -*- coding: utf-8 -*-
2#
3# File: ILPortal.py
4#
5# Copyright (c) 2006 by Interlegis
6# Generator: ArchGenXML Version 1.5.0 svn/devel
7#            http://plone.org/products/archgenxml
8#
9# GNU General Public License (GPL)
10#
11# This program is free software; you can redistribute it and/or
12# modify it under the terms of the GNU General Public License
13# as published by the Free Software Foundation; either version 2
14# of the License, or (at your option) any later version.
15#
16# This program is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with this program; if not, write to the Free Software
23# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24# 02110-1301, USA.
25#
26
27__author__ = """STC Interlegis <admin-stc@interlegis.gov.br>"""
28__docformat__ = 'plaintext'
29
30
31# Product configuration.
32#
33# The contents of this module will be imported into __init__.py, the
34# workflow configuration and every content type module.
35#
36# If you wish to perform custom configuration, you may put a file
37# AppConfig.py in your product's root directory. This will be included
38# in this file if found.
39
40from Products.CMFCore.CMFCorePermissions import setDefaultRoles
41##code-section config-head #fill in your manual code here
42##/code-section config-head
43
44
45PROJECTNAME = "ILPortal"
46
47# Check for Plone 2.1
48try:
49    from Products.CMFPlone.migrations import v2_1
50except ImportError:
51    HAS_PLONE21 = False
52else:
53    HAS_PLONE21 = True
54
55# Permissions
56DEFAULT_ADD_CONTENT_PERMISSION = "Add portal content"
57setDefaultRoles(DEFAULT_ADD_CONTENT_PERMISSION, ('Manager', 'Owner'))
58ADD_CONTENT_PERMISSIONS = {
59    'MesaDiretora': 'Add MesaDiretora Content',
60    'CasaLegislativa': 'Add CasaLegislativa Content',
61    'Telefone': 'Add Telefone Content',
62    'Parlamentar': 'Add Parlamentar Content',
63    'MembroMesaDiretora': 'Add MembroMesaDiretora Content',
64    'MemberFolder': 'Add MemberFolder Content',
65    'MelhoresPraticas': 'Add MelhoresPraticas Content',
66    'VideoConferencia': 'Add VideoConferencia Content',
67    'TextoPasta': 'Add TextoPasta Content',
68}
69
70setDefaultRoles('Add MesaDiretora Content', ('Manager','Owner'))
71setDefaultRoles('Add CasaLegislativa Content', ('Manager','Owner'))
72setDefaultRoles('Add Telefone Content', ('Manager','Owner'))
73setDefaultRoles('Add Parlamentar Content', ('Manager','Owner'))
74setDefaultRoles('Add MembroMesaDiretora Content', ('Manager','Owner'))
75setDefaultRoles('Add MemberFolder Content', ('Manager','Owner'))
76setDefaultRoles('Add MelhoresPraticas Content', ('Manager','Owner'))
77setDefaultRoles('Add VideoConferencia Content', ('Manager','Owner'))
78setDefaultRoles('Add TextoPasta Content', ('Manager','Owner'))
79
80product_globals = globals()
81
82# Dependencies of Products to be installed by quick-installer
83# override in custom configuration
84DEPENDENCIES = []
85
86# Dependend products - not quick-installed - used in testcase
87# override in custom configuration
88PRODUCT_DEPENDENCIES = []
89
90# You can overwrite these two in an AppConfig.py:
91# STYLESHEETS = [{'id': 'my_global_stylesheet.css'},
92#                {'id': 'my_contenttype.css',
93#                 'expression': 'python:object.getTypeInfo().getId() == "MyType"'}]
94# You can do the same with JAVASCRIPTS.
95STYLESHEETS = []
96JAVASCRIPTS = []
97
98##code-section config-bottom #fill in your manual code here
99
100DEPENDENCIES = ['Archetypes', 'Ploneboard', 'CMFPublicator', 'PloneGazette', 'PlonePopoll', 'PloneChat', 'PloneKeywordManager','PloneLanguageTool', 'DataGridField', 'CMFSin',]
101
102##/code-section config-bottom
103
104
105# Load custom configuration not managed by ArchGenXML
106try:
107    from Products.ILPortal.AppConfig import *
108except ImportError:
109    pass
Note: Veja TracBrowser para ajuda no uso do navegador do trac.
 

The contents and data of this website are published under license:
Creative Commons 4.0 Brasil - Atribuir Fonte - Compartilhar Igual.