conf.py :  » Web-Frameworks » Karrigell » Karrigell-3.1 » data » www » Python Open Source

Home
Python Open Source
1.3.1.2 Python
2.Ajax
3.Aspect Oriented
4.Blog
5.Build
6.Business Application
7.Chart Report
8.Content Management Systems
9.Cryptographic
10.Database
11.Development
12.Editor
13.Email
14.ERP
15.Game 2D 3D
16.GIS
17.GUI
18.IDE
19.Installer
20.IRC
21.Issue Tracker
22.Language Interface
23.Log
24.Math
25.Media Sound Audio
26.Mobile
27.Network
28.Parser
29.PDF
30.Project Management
31.RSS
32.Search
33.Security
34.Template Engines
35.Test
36.UML
37.USB Serial
38.Web Frameworks
39.Web Server
40.Web Services
41.Web Unit
42.Wiki
43.Windows
44.XML
Python Open Source » Web Frameworks » Karrigell 
Karrigell » Karrigell 3.1 » data » www » conf.py
"""Default configuration file
"""

import os

# karrigell_dir is in the namespace where this script is run in k_config.py
root_dir = os.path.join(server_dir,"www")
data_dir = os.path.join(server_dir, "data","www")
cgi_dir = os.path.join(root_dir,"cgi-bin")
cache_dir = os.path.join(data_dir, "cache")

# list of user roles allowed to see directory listings
# if url matches a directory ?
# None means any user. Other values can be 'admin','edit','visit'
allow_directory_listing = [None]

# don't serve files with extension in this list
hide_extensions = [".pdl",".cache"]

# don't serve files with path matching regular expressions in this list
ignore = ["/core.*","/package.*","/conf.*","/data.*"]

# logging file
logging_file = None #os.path.join(karrigell_dir,"logs","access.log")
logging_rotate = "hourly"

# Unicode management
# encode_output : a string = the encoding to use to send data back to the 
# client
output_encoding = None #"utf-8"

# language to translate marked strings to
language = None

# indicates if a complete trace should be printed in case of exception
debug = True

# dictionary of aliases
# if alias["foo"] = "/usr/some_folder" then url /foo/bar.py will
# be resolved to file /usr/some_folder/bar.py
alias = {"admin":os.path.join(server_dir,"common","admin"),
    "doc":os.path.join(server_dir,"common","doc"),
    "demo":os.path.join(server_dir,"common","demo"),
    "editarea":os.path.join(server_dir,"common","editarea"),
    "whizzywig":os.path.join(server_dir,"common","whizzywig"),
    'blogs/sqlite/.*?':os.path.join(server_dir,'common','demo','sqlite','blog'),
    'blogs/mysql/.*?':os.path.join(server_dir,'common','demo','mysql','blog')
    }

# use gzip to compress text files ?
gzip = True

# these modules will be available in all scripts namespace
global_modules = [] #[os.path.join(root_dir,"demo","tour","aaa.py")]

# capture request and response in a database ?
capture = False

# maximum number of sessions
max_sessions = 500
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.