appypod-rattail/gen/templates/config.pyt

59 lines
2 KiB
Plaintext
Raw Normal View History

2009-06-29 07:06:01 -05:00
<!codeHeader!>
import os, os.path, sys, copy
2011-12-05 11:15:45 -06:00
import appy
import appy.gen
import wrappers
2009-06-29 07:06:01 -05:00
<!imports!>
2009-06-29 07:06:01 -05:00
# The following imports are here for allowing mixin classes to access those
# elements without being statically dependent on Zope packages.
2009-06-29 07:06:01 -05:00
from persistent.list import PersistentList
from zExceptions import BadRequest
from ZPublisher.HTTPRequest import BaseRequest
2009-06-29 07:06:01 -05:00
from OFS.Image import File
from ZPublisher.HTTPRequest import FileUpload
from AccessControl import getSecurityManager
2011-11-28 15:50:01 -06:00
from AccessControl.PermissionRole import rolesForPermissionOn
2009-06-29 07:06:01 -05:00
from DateTime import DateTime
from Products.ExternalMethod.ExternalMethod import ExternalMethod
from Products.Transience.Transience import TransientObjectContainer
import appy.gen
2009-06-29 07:06:01 -05:00
import logging
logger = logging.getLogger('<!applicationName!>')
# Some global variables --------------------------------------------------------
PROJECTNAME = '<!applicationName!>'
diskFolder = os.path.dirname(<!applicationName!>.__file__)
2009-06-29 07:06:01 -05:00
defaultAddRoles = [<!defaultAddRoles!>]
ADD_CONTENT_PERMISSIONS = {
<!addPermissions!>}
# Applications classes, in various formats
rootClasses = [<!rootClasses!>]
appClasses = [<!appClasses!>]
appClassNames = [<!appClassNames!>]
allClassNames = [<!allClassNames!>]
# In the following dict, we store, for every Appy class, the ordered list of
# appy types (included inherited ones).
attributes = {<!attributes!>}
# Application roles
applicationRoles = [<!roles!>]
applicationGlobalRoles = [<!gRoles!>]
grantableRoles = [<!grRoles!>]
# Configuration options
languages = [<!languages!>]
languageSelector = <!languageSelector!>
sourceLanguage = '<!sourceLanguage!>'
activateForgotPassword = <!activateForgotPassword!>
enableSessionTimeout = <!enableSessionTimeout!>
ogone = <!ogone!>
googleAnalyticsId = <!googleAnalyticsId!>
2011-12-05 11:15:45 -06:00
# When Zope is starting or runs in test mode, there is no request object. We
# create here a fake one for storing Appy wrappers.
fakeRequest = appy.Object()
2009-06-29 07:06:01 -05:00
# ------------------------------------------------------------------------------