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