Logo Search packages:      
Sourcecode: zope-i18nfolder version File versions

global_symbols.py

#################################################################################
#                                                                               #
#                       Copyright (c) 2003 Ingeniweb SARL                       #
#                                                                               #
#################################################################################

"""Plone Minimal Product"""
import os

from Products.CMFCore import CMFCorePermissions



## The following lines are only useful with the Log.py module
## (which is out of scope from this product)

try:
    # Check if we have to be in debug mode
    if os.path.isfile(os.path.abspath(os.path.dirname(__file__)) + '/debug.txt'):
        DEBUG_MODE = 1
    else:
        DEBUG_MODE = 0


    # Set log options correctly
    import Log
    if DEBUG_MODE:
        Log.LOG_LEVEL = Log.LOG_DEBUG
    else:
        Log.LOG_LEVEL = Log.LOG_NOTICE

    from Log import *
    Log = Log
    Log(LOG_NOTICE, "Starting %s at %d debug level" % (os.path.dirname(__file__), LOG_LEVEL, ))

except:
    LOG_DEBUG = None
    LOG_NOTICE = None
    LOG_WARNING = None
    LOG_ERROR = None
    LOG_CRITICAL = None
    def Log(*args, **kw):
        pass


# Permissions
I18NFolder_addPermission = "Add portal I18N folders"
I18NFolder_editPermission = "Edit portal I18N folders"

Generated by  Doxygen 1.6.0   Back to index