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

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

correção na busca de conteudo das casas

File size: 4.0 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    'Parlamentar': 'Add Parlamentar Content',
62    'MembroMesaDiretora': 'Add MembroMesaDiretora Content',
63    'MemberFolder': 'Add MemberFolder Content',
64    'MelhoresPraticas': 'Add MelhoresPraticas Content',
65    'VideoConferencia': 'Add VideoConferencia Content',
66    'TextoPasta': 'Add TextoPasta Content',
67    'SolicitacaoFolder': 'Add SolicitacaoFolder Content',
68    'Solicitacao': 'Add Solicitacao Content',
69    'Resposta': 'Add Resposta Content',
70}
71
72setDefaultRoles('Add MesaDiretora Content', ('Manager','Owner'))
73setDefaultRoles('Add CasaLegislativa Content', ('Manager','Owner'))
74setDefaultRoles('Add Parlamentar Content', ('Manager','Owner'))
75setDefaultRoles('Add MembroMesaDiretora Content', ('Manager','Owner'))
76setDefaultRoles('Add MemberFolder Content', ('Manager','Owner'))
77setDefaultRoles('Add MelhoresPraticas Content', ('Manager','Owner'))
78setDefaultRoles('Add VideoConferencia Content', ('Manager','Owner'))
79setDefaultRoles('Add TextoPasta Content', ('Manager','Owner'))
80setDefaultRoles('Add SolicitacaoFolder Content', ('Manager','Owner'))
81setDefaultRoles('Add Solicitacao Content', ('Manager','Owner'))
82setDefaultRoles('Add Resposta Content', ('Manager','Owner'))
83
84product_globals = globals()
85
86# Dependencies of Products to be installed by quick-installer
87# override in custom configuration
88DEPENDENCIES = []
89
90# Dependend products - not quick-installed - used in testcase
91# override in custom configuration
92PRODUCT_DEPENDENCIES = []
93
94# You can overwrite these two in an AppConfig.py:
95# STYLESHEETS = [{'id': 'my_global_stylesheet.css'},
96#                {'id': 'my_contenttype.css',
97#                 'expression': 'python:object.getTypeInfo().getId() == "MyType"'}]
98# You can do the same with JAVASCRIPTS.
99STYLESHEETS = []
100JAVASCRIPTS = []
101
102##code-section config-bottom #fill in your manual code here
103
104DEPENDENCIES = ['Archetypes', 'Ploneboard', 'CMFPublicator', 'PloneGazette', 'PlonePopoll', 'PloneChat', 'PloneKeywordManager','PloneLanguageTool', 'DataGridField', 'CMFSin',]
105
106##/code-section config-bottom
107
108
109# Load custom configuration not managed by ArchGenXML
110try:
111    from Products.ILPortal.AppConfig import *
112except ImportError:
113    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.