source: publico/ILSAALRecursosHumanos/trunk/config.py

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

Atualizada a versão do ArchGenXml para a 1.4RC2

File size: 3.5 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 = "ILSAALRecursosHumanos"
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   
21# Permissions
22DEFAULT_ADD_CONTENT_PERMISSION = "Add portal content"
23setDefaultRoles(DEFAULT_ADD_CONTENT_PERMISSION, ('Manager', 'Owner'))
24ADD_CONTENT_PERMISSIONS = {
25    'Ferias': 'Add Ferias Content',
26    'Vencimentos': 'Add Vencimentos Content',
27    'Recisao': 'Add Recisao Content',
28    'Sefip': 'Add Sefip Content',
29    'EventoHistoricoFucional': 'Add EventoHistoricoFucional Content',
30    'AdicionalTempoServico': 'Add AdicionalTempoServico Content',
31    'Dependente': 'Add Dependente Content',
32    'Empregados': 'Add Empregados Content',
33    'Sindicato': 'Add Sindicato Content',
34    'Sindicatos': 'Add Sindicatos Content',
35    'Dependentes': 'Add Dependentes Content',
36    'LogRh': 'Add LogRh Content',
37    'Sefips': 'Add Sefips Content',
38    'Pensionista': 'Add Pensionista Content',
39    'RepresentanteLegal': 'Add RepresentanteLegal Content',
40    'Empregado': 'Add Empregado Content',
41    'Fgts': 'Add Fgts Content',
42    'Afastamento': 'Add Afastamento Content',
43    'Pensionistas': 'Add Pensionistas Content',
44}
45
46setDefaultRoles('Add Ferias Content', ('Manager', 'Owner'))
47setDefaultRoles('Add Vencimentos Content', ('Manager', 'Owner'))
48setDefaultRoles('Add Recisao Content', ('Manager', 'Owner'))
49setDefaultRoles('Add Sefip Content', ('Manager', 'Owner'))
50setDefaultRoles('Add EventoHistoricoFucional Content', ('Manager', 'Owner'))
51setDefaultRoles('Add AdicionalTempoServico Content', ('Manager', 'Owner'))
52setDefaultRoles('Add Dependente Content', ('Manager', 'Owner'))
53setDefaultRoles('Add Empregados Content', ('Manager', 'Owner'))
54setDefaultRoles('Add Sindicato Content', ('Manager', 'Owner'))
55setDefaultRoles('Add Sindicatos Content', ('Manager', 'Owner'))
56setDefaultRoles('Add Dependentes Content', ('Manager', 'Owner'))
57setDefaultRoles('Add LogRh Content', ('Manager', 'Owner'))
58setDefaultRoles('Add Sefips Content', ('Manager', 'Owner'))
59setDefaultRoles('Add Pensionista Content', ('Manager', 'Owner'))
60setDefaultRoles('Add RepresentanteLegal Content', ('Manager', 'Owner'))
61setDefaultRoles('Add Empregado Content', ('Manager', 'Owner'))
62setDefaultRoles('Add Fgts Content', ('Manager', 'Owner'))
63setDefaultRoles('Add Afastamento Content', ('Manager', 'Owner'))
64setDefaultRoles('Add Pensionistas Content', ('Manager', 'Owner'))
65
66product_globals=globals()
67
68# Dependencies of Products to be installed by quick-installer
69# override in custom configuration
70DEPENDENCIES = []
71
72# Dependend products - not quick-installed - used in testcase
73# override in custom configuration
74PRODUCT_DEPENDENCIES = []
75
76# You can overwrite these two in an AppConfig.py:
77# STYLESHEETS = [{'id': 'my_global_stylesheet.css'},
78#                {'id': 'my_contenttype.css',
79#                 'expression': 'python:object.getTypeInfo().getId() == "MyType"}]
80# You can do the same with JAVASCRIPTS.
81STYLESHEETS = []
82JAVASCRIPTS = []
83
84##code-section config-bottom #fill in your manual code here
85##/code-section config-bottom
86
87
88# load custom configuration not managed by ArchGenXML
89try:
90    from Products.ILSAALRecursosHumanos.AppConfig import *
91except ImportError:
92    pass
93
94# End of config.py
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.