All pastes #241918 Raw Edit

Something

public text v1 · immutable
·published 2006-11-06 19:35 UTC
rendered paste body
;; This is the main configuration file for the Python Servlet Engine
;; The default values are shown here and will generally work without
;; modification.  However, in some cases you must edit this file for
;; PSE to work correctly on your system.  Please refer to the User's
;; Manual for more details.

[Main]
;; Extension is the file extension of PSE files.  The default is pt.
;Extension = pt

;; MaxBuffer is the maximum buffer size for file reads
;MaxBuffer = 131072

;; MemoryCacheSize is the maximum number of compiled files to keep in memory
;; per server process.  Note that templates and the modules that go with
;; them count as two separate files, even though they execute as a single
;; servlet.  You may disable caching by specifying a value of 0 here.
;; The default is 100.
;MemoryCacheSize = 100

;; OutputCacheDir is the directory that contains cached output for
;; servlets that explicitly set pse.cache.  The default is a subdirectory
;; of the system default temp directory named pse_cache.
;OutputCacheDir = /tmp/pse_cache

;; Path is a comma separated list of directories to be used inside servlets
;Path = /app/lib/path,/other/python/path

;; PreImport is a comma separated list of modules to pre-import before the
;; next request, which must be on sys.path
;PreImport = MyModule,SomePackage.Submodule

;; UserPluginPath is a comma separated list of directories to be searched
;; for user plugins.  These directories must *only* contain plugins!
;UserPluginPath = /user/plugin/dir,/other/plugin/dir

;; IncludePath is a comma separated list of directories to be searched for
;; servlets run using the pse.include function.
;IncludePath = /app/servlet/path,/other/servlet/path

;; DefaultEncoding specifies the default encoding for unicode strings.
;; The default is UTF-8
;DefaultEncoding = UTF-8

;; ManageImports determines whether or not PSE will manage imports from
;; request to request.  The default is Yes.
;ManageImports = Yes

[Parser]
;; Module or list of modules that define custom tag hooks.  You *must*
;; specify a full, absolute path here.  See documentation for details.
;TagHooksModule = /path/to/mytags.py

[Debug]
;; ShowTrace indicates whether or not to show tracebacks in the browser at all.
;; The default is Yes.
;ShowTrace = Yes

;; Normally PSE only shows tracebacks if the source is available.  Setting
;; TraceAll to Yes will cause PSE to always attempt to show a traceback.
;; This overrides ShowTrace.
;TraceAll = False

;; ApacheLogAll indicates whether all errors should also be logged to the
;; apache error log, even if ErrorLog is set.  The default is No.
;ApacheLogAll = No

;; ErrorLog is the path to a file to log tracebacks, regardless of whether the
;; traceback is shown in the browser.  The default is to log to apache's
;; ErrorLog if unset.
;ErrorLog = /tmp/pse-errors

;; ExceptionHooksModule defines functions to intercept uncaught exceptions
;; instead of the builtin exception display.
;; See documentation for details.
;ExceptionHooksModule = /path/to/myexception.py
ExceptionHooksModule = /home/kkinder/pse_exceptions.py

[UserOptions]
;; You can add any option here that you want to add as a key/value pair
;; to the pse.user_options dictionary inside any servlet
;MyOption = value

[plugin.request]
;; Setting this to Yes will cause pse.plugin.request.form to behave 
;; like a normal dictionary if you try to access a non-existent key.
;; Setting FormKeyError to No will cause pse.plugin.request.form to 
;; return an empty string if an invalid key is used. has_key(), 
;; keys(), etc. will still behave normally.
;; By default, it is set to No.
;FormKeyError = No

[plugin.session]
;; These are the default values.
;; Type can be dbm, sqlite or psycopg.  Default is dbm
;Type = dbm

;; Cookie expiration time, from last access in minutes
;CookieExpires = 360

;; The length of time, from last access in minutes, that the session is good
;Timeout = 360

;; The location of the file to use for the session database,
;; if dbm or sqlite
;File = /tmp/pse_session

;; The session garbage collection probability, out of 1000
;CollectProbability = 1

;; These last 2 only work for psycopg
;; This is the psycopg DSN connect string
;DSN = dbname=pse

;; The name of the table to use in the database
;Table = pse_session