root/config.py

Revision 4, 3.2 kB (checked in by matt_dorn@yahoo.com, 4 years ago)

0.3: Some final touch-ups before uploading

Line 
1 # File: PloneXL8.py
2 #
3 # Copyright (c) 2006 by Matt Dorn
4 # Generator: ArchGenXML Version 1.4.1
5 #            http://plone.org/products/archgenxml
6 #
7 # GNU General Public License (GPL)
8 #
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License
11 # as published by the Free Software Foundation; either version 2
12 # of the License, or (at your option) any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 # 02110-1301, USA.
23 #
24
25 __author__ = """Matt Dorn <matt_dorn@yahoo.com>"""
26 __docformat__ = 'plaintext'
27
28
29 # Product configuration.
30 #
31 # The contents of this module will be imported into __init__.py, the
32 # workflow configuration and every content type module.
33 #
34 # If you wish to perform custom configuration, you may put a file
35 # AppConfig.py in your product's root directory. This will be included
36 # in this file if found.
37
38 from Products.CMFCore.CMFCorePermissions import setDefaultRoles
39 ##code-section config-head #fill in your manual code here
40 ##/code-section config-head
41
42
43 PROJECTNAME = "PloneXL8"
44
45 # Check for Plone 2.1
46 try:
47     from Products.CMFPlone.migrations import v2_1
48 except ImportError:
49     HAS_PLONE21 = False
50 else:
51     HAS_PLONE21 = True
52
53 # Permissions
54 DEFAULT_ADD_CONTENT_PERMISSION = "Add portal content"
55 setDefaultRoles(DEFAULT_ADD_CONTENT_PERMISSION, ('Manager', 'Owner'))
56 ADD_CONTENT_PERMISSIONS = {
57     'TranslationCenter': 'DocumentTranslationCenter: Add Translation Center',
58     'TranslationDoc': 'DocumentTranslationCenter: Add Source Document',
59 }
60
61 setDefaultRoles('DocumentTranslationCenter: Add Translation Center', ('Manager',))
62 setDefaultRoles('DocumentTranslationCenter: Add Source Document', ('Manager', 'Member'))
63
64 product_globals = globals()
65
66 # Dependencies of Products to be installed by quick-installer
67 # override in custom configuration
68 DEPENDENCIES = []
69
70 # Dependend products - not quick-installed - used in testcase
71 # override in custom configuration
72 PRODUCT_DEPENDENCIES = []
73
74 # You can overwrite these two in an AppConfig.py:
75 # STYLESHEETS = [{'id': 'my_global_stylesheet.css'},
76 #                {'id': 'my_contenttype.css',
77 #                 'expression': 'python:object.getTypeInfo().getId() == "MyType"'}]
78 # You can do the same with JAVASCRIPTS.
79 STYLESHEETS = []
80 JAVASCRIPTS = []
81
82 ##code-section config-bottom #fill in your manual code here
83 TRANSLATION_DOC_TYPES=[("1", 'Public SF'), ("2", 'Internal SF'), ("3", 'Babels')]
84 TRANSLATION_URGENCIES=[("1", 'Normal'), ("2", 'Urgent'), ("3", 'Super Urgent')]
85 META_TYPES_NOT_TO_LIST = ["TranslationDoc"]
86 TO_INDEX = ["getWordCount", "getSourceLanguage"] # these don't get indexed automatically, so do it on install
87 ##/code-section config-bottom
88
89
90 # Load custom configuration not managed by ArchGenXML
91 try:
92     from Products.PloneXL8.AppConfig import *
93 except ImportError:
94     pass
Note: See TracBrowser for help on using the browser.