Back to index

plone3  3.1.7
global_symbols.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 ## CMFPlacefulWorkflow
00003 ## Copyright (C)2005 Ingeniweb
00004 
00005 ## This program is free software; you can redistribute it and/or modify
00006 ## it under the terms of the GNU General Public License as published by
00007 ## the Free Software Foundation; either version 2 of the License, or
00008 ## (at your option) any later version.
00009 
00010 ## This program is distributed in the hope that it will be useful,
00011 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 ## GNU General Public License for more details.
00014 
00015 ## You should have received a copy of the GNU General Public License
00016 ## along with this program; see the file COPYING. If not, write to the
00017 ## Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018 """
00019 CMFPlacefulWorkflow product
00020 """
00021 __version__ = "$Revision: 43896 $"
00022 # $Source: /cvsroot/ingeniweb/CMFPlacefulWorkflow/global_symbols.py,v $
00023 # $Id: global_symbols.py 43896 2007-06-17 09:55:34Z hannosch $
00024 __docformat__ = 'restructuredtext'
00025 
00026 import os
00027 
00028 # Check if we have to be in debug mode
00029 if os.path.isfile(os.path.abspath(os.path.dirname(__file__)) + '/debug.txt'):
00030     DEBUG_MODE = True
00031 else:
00032     DEBUG_MODE = False
00033 
00034 # Set log options correctly
00035 import Log
00036 if DEBUG_MODE:
00037     Log.LOG_LEVEL = Log.LOG_DEBUG
00038 else:
00039     Log.LOG_LEVEL = Log.LOG_NOTICE
00040 
00041 from Log import *
00042 
00043 PROJECTNAME = "CMFPlacefulWorkflow"
00044 
00045 from Products.CMFCore.permissions import ManagePortal
00046 
00047 placeful_prefs_configlet = {
00048     'id': 'placefulworkflow',
00049     'appId': "Placeful Workflow",
00050     'name': 'Placeful Workflow',
00051     'action': 'string:$portal_url/prefs_workflow_localpolicies_form',
00052     'category': 'Products',
00053     'permission': (ManagePortal,),
00054     'imageUrl': 'placefulworkflow_icon.png',
00055     }