forked from isawnyu/PleiadesEntity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
72 lines (58 loc) · 2.4 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# -*- coding: utf-8 -*-
#
# File: PleiadesEntity.py
#
# Copyright (c) 2009 by Ancient World Mapping Center, University of North
# Carolina at Chapel Hill, U.S.A.
# Generator: ArchGenXML Version 2.4.1
# http://plone.org/products/archgenxml
#
# GNU General Public License (GPL)
#
__author__ = """Sean Gillies <unknown>, Tom Elliott <unknown>"""
__docformat__ = 'plaintext'
# Product configuration.
#
# The contents of this module will be imported into __init__.py, the
# workflow configuration and every content type module.
#
# If you wish to perform custom configuration, you may put a file
# AppConfig.py in your product's root directory. The items in there
# will be included (by importing) in this file if found.
from Products.CMFCore.permissions import setDefaultRoles
##code-section config-head #fill in your manual code here
##/code-section config-head
PROJECTNAME = "PleiadesEntity"
# Permissions
DEFAULT_ADD_CONTENT_PERMISSION = "Add portal content"
setDefaultRoles(DEFAULT_ADD_CONTENT_PERMISSION, ('Manager', 'Owner', 'Contributor'))
ADD_CONTENT_PERMISSIONS = {
'Name': 'PleiadesEntity: Add Name',
'Location': 'PleiadesEntity: Add Location',
'Feature': 'PleiadesEntity: Add Feature',
'PlaceContainer': 'PleiadesEntity: Add PlaceContainer',
'Place': 'PleiadesEntity: Add Place',
'FeatureContainer': 'PleiadesEntity: Add FeatureContainer',
'PositionalAccuracy': 'PleiadesEntity: Add PositionalAccuracy',
}
setDefaultRoles('PleiadesEntity: Add Name', ('Manager','Owner'))
setDefaultRoles('PleiadesEntity: Add Location', ('Manager','Owner'))
setDefaultRoles('PleiadesEntity: Add Feature', ('Manager','Owner'))
setDefaultRoles('PleiadesEntity: Add PlaceContainer', ('Manager','Owner'))
setDefaultRoles('PleiadesEntity: Add Place', ('Manager','Owner'))
setDefaultRoles('PleiadesEntity: Add FeatureContainer', ('Manager','Owner'))
setDefaultRoles('PleiadesEntity: Add PositionalAccuracy', ('Manager','Owner'))
product_globals = globals()
# Dependencies of Products to be installed by quick-installer
# override in custom configuration
DEPENDENCIES = []
# Dependend products - not quick-installed - used in testcase
# override in custom configuration
PRODUCT_DEPENDENCIES = []
##code-section config-bottom #fill in your manual code here
##/code-section config-bottom
# Load custom configuration not managed by archgenxml
try:
from Products.PleiadesEntity.AppConfig import *
except ImportError:
pass