source: publico/ILSAAL/trunk/config.py @ 1194

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

Inseridos os portlets do SAAL que substituirão as funções do Plone somente dentro da base do SAAL

File size: 1.9 KB
Linha 
1#
2# Product configuration. This contents of this module will be imported into
3# __init__.py and every content type module.
4#
5# If you wish to perform custom configuration, you may put a file AppConfig.py
6# in your product's root directory. This will be included in this file if
7# found.
8#
9from Products.CMFCore.CMFCorePermissions import setDefaultRoles
10
11PROJECTNAME = "ILSAAL"
12
13# Check for Plone 2.1
14try:
15    from Products.CMFPlone.migrations import v2_1
16except ImportError:
17    HAS_PLONE21 = False
18else:
19    HAS_PLONE21 = True
20# Permissions
21DEFAULT_ADD_CONTENT_PERMISSION = "Add portal content"
22setDefaultRoles(DEFAULT_ADD_CONTENT_PERMISSION, ('Manager', 'Owner'))
23ADD_CONTENT_PERMISSIONS = {
24    'SAAL': 'Add SAAL Content',
25    'CasaLegislativa': 'Add CasaLegislativa Content',
26    'UnidadeAdministrativa': 'Add UnidadeAdministrativa Content',
27}
28
29setDefaultRoles('Add SAAL Content', ('Manager', 'Owner'))
30setDefaultRoles('Add CasaLegislativa Content', ('Manager', 'Owner'))
31setDefaultRoles('Add UnidadeAdministrativa Content', ('Manager', 'Owner'))
32
33product_globals=globals()
34
35##code-section config-bottom #fill in your manual code here
36
37DEPENDENCIES = ['Archetypes', \
38                'ATVocabularyManager']
39
40CONTEUDO_MENU = ['here/saal_usuario_portlet/macros/portlet', \
41                 'here/saal_abas_portlet/macros/portlet', \
42                 'here/saal_inserir_portlet/macros/portlet', \
43                 'here/saal_estado_portlet/macros/portlet', \
44                 'here/portlet_calendar/macros/portlet']
45
46##/code-section config-bottom
47
48
49# load custom configuration not managed by ArchGenXML
50try:
51    from Products.ILSAAL.AppConfig import *
52except ImportError:
53    pass
54
55# End of config.py
56# Things you can do in an AppConfig.py:
57# STYLESHEETS = [{'id': 'my_global_stylesheet.css'},
58#                {'id': 'my_contenttype.css',
59#                 'expression': 'python:object.getTypeInfo().getId() == "MyType"}]
60# You can do the same with JAVASCRIPTS.
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.