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

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

Primeiro passo para modificar a interface do Plone quando entrar no container saal. Precisa melhorias urgentes.

File size: 1.7 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/portlet_saal/macros/portlet', \
41                 'here/portlet_calendar/macros/portlet']
42
43##/code-section config-bottom
44
45
46# load custom configuration not managed by ArchGenXML
47try:
48    from Products.ILSAAL.AppConfig import *
49except ImportError:
50    pass
51
52# End of config.py
53# Things you can do in an AppConfig.py:
54# STYLESHEETS = [{'id': 'my_global_stylesheet.css'},
55#                {'id': 'my_contenttype.css',
56#                 'expression': 'python:object.getTypeInfo().getId() == "MyType"}]
57# 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.