root/RiceInventory/trunk/RiceInventory/RiceInventory/config.py
Revision 26 (checked in by cbc, 15 years ago) | |
---|---|
|
Line | |
---|---|
1 | # -*- coding: utf-8 -*- |
2 | # |
3 | # File: RiceInventory.py |
4 | # |
5 | # Copyright (c) 2009 by [] |
6 | # Generator: ArchGenXML Version 2.4.1 |
7 | # http://plone.org/products/archgenxml |
8 | # |
9 | # GNU General Public License (GPL) |
10 | # |
11 | |
12 | __author__ = """unknown <unknown>""" |
13 | __docformat__ = 'plaintext' |
14 | |
15 | |
16 | # Product configuration. |
17 | # |
18 | # The contents of this module will be imported into __init__.py, the |
19 | # workflow configuration and every content type module. |
20 | # |
21 | # If you wish to perform custom configuration, you may put a file |
22 | # AppConfig.py in your product's root directory. The items in there |
23 | # will be included (by importing) in this file if found. |
24 | |
25 | from Products.CMFCore.permissions import setDefaultRoles |
26 | ##code-section config-head #fill in your manual code here |
27 | ##/code-section config-head |
28 | |
29 | |
30 | PROJECTNAME = "RiceInventory" |
31 | |
32 | # Permissions |
33 | DEFAULT_ADD_CONTENT_PERMISSION = "Add portal content" |
34 | setDefaultRoles(DEFAULT_ADD_CONTENT_PERMISSION, ('Manager', 'Owner', 'Contributor')) |
35 | ADD_CONTENT_PERMISSIONS = { |
36 | 'Platform': 'RiceInventory: Add Platform', |
37 | 'Inventory': 'RiceInventory: Add Inventory', |
38 | } |
39 | |
40 | setDefaultRoles('RiceInventory: Add Platform', ('Manager','Owner')) |
41 | setDefaultRoles('RiceInventory: Add Inventory', ('Manager','Owner')) |
42 | |
43 | product_globals = globals() |
44 | |
45 | # Dependencies of Products to be installed by quick-installer |
46 | # override in custom configuration |
47 | DEPENDENCIES = [] |
48 | |
49 | # Dependend products - not quick-installed - used in testcase |
50 | # override in custom configuration |
51 | PRODUCT_DEPENDENCIES = [] |
52 | |
53 | ##code-section config-bottom #fill in your manual code here |
54 | ##/code-section config-bottom |
55 | |
56 | |
57 | # Load custom configuration not managed by archgenxml |
58 | try: |
59 | from Products.RiceInventory.AppConfig import * |
60 | except ImportError: |
61 | pass |
Note: See TracBrowser for help on using the browser.