| 1 | # -*- coding: utf-8 -*- |
|---|
| 2 | # |
|---|
| 3 | # File: ATGoogleMaps.py |
|---|
| 4 | # |
|---|
| 5 | # Copyright (c) 2008 by ['takanori', 'yuta'] |
|---|
| 6 | # Generator: ArchGenXML Version 2.1 |
|---|
| 7 | # http://plone.org/products/archgenxml |
|---|
| 8 | # |
|---|
| 9 | # GNU General Public License (GPL) |
|---|
| 10 | # |
|---|
| 11 | |
|---|
| 12 | __author__ = """takanori <takanori@takanory.net>, yuta <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 = "ATGoogleMaps" |
|---|
| 31 | |
|---|
| 32 | # Permissions |
|---|
| 33 | DEFAULT_ADD_CONTENT_PERMISSION = "Add portal content" |
|---|
| 34 | setDefaultRoles(DEFAULT_ADD_CONTENT_PERMISSION, ('Manager', 'Owner')) |
|---|
| 35 | ADD_CONTENT_PERMISSIONS = { |
|---|
| 36 | 'GMap': 'ATGoogleMaps: Add GMap', |
|---|
| 37 | 'GMarker': 'ATGoogleMaps: Add GMarker', |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | setDefaultRoles('ATGoogleMaps: Add GMap', ('Manager','Owner')) |
|---|
| 41 | setDefaultRoles('ATGoogleMaps: Add GMarker', ('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.ATGoogleMaps.AppConfig import * |
|---|
| 60 | except ImportError: |
|---|
| 61 | pass |
|---|