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

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

modelo,visoes,css e appinstall atualizados

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 = "ILPortal"
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    'MesaDiretora': 'Add MesaDiretora Content',
25    'CasaLegislativa': 'Add CasaLegislativa Content',
26    'Telefone': 'Add Telefone Content',
27    'Parlamentar': 'Add Parlamentar Content',
28    'MembroMesaDiretora': 'Add MembroMesaDiretora Content',
29}
30
31setDefaultRoles('Add MesaDiretora Content', ('Manager', 'Owner'))
32setDefaultRoles('Add CasaLegislativa Content', ('Manager', 'Owner'))
33setDefaultRoles('Add Telefone Content', ('Manager', 'Owner'))
34setDefaultRoles('Add Parlamentar Content', ('Manager', 'Owner'))
35setDefaultRoles('Add MembroMesaDiretora Content', ('Manager', 'Owner'))
36
37product_globals=globals()
38
39##code-section config-bottom #fill in your manual code here
40
41DEPENDENCIES = ['Archetypes','Ploneboard','CMFPublicator','PloneGazette','PloneMaintenance','PlonePopoll','PloneChat','PloneKeywordManager']
42
43##/code-section config-bottom
44
45
46# load custom configuration not managed by ArchGenXML
47try:
48    from Products.ILPortal.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.