# Sample SchoolTool HTTP server configuration file

# identify the component configuration used to define the site:
site-definition ${abspath}/school.zcml

#
# path /path/to/add
# path /another/path/to/add
#
#  Specifies a path to add to the beginning of Python's module search path
#  There can be zero or more 'path' directives
#

#
# module dotted.module.name
# module another.dotted.module.name
#
#  Lists modules to be set up when the server is started. The modules must
#  provide IModuleSetup. The module 'schooltool.main' is implicitly listed
#  first.
#
# Example:
#   module school.example
#

#
# ssl_certificate certificate
#
#   Specifies a certificate in PEM format which contains a certificate and
#   private key for use in SSL connections.
#   This is required to use web_ssl
#

#
# thread-pool-size n
#
#   Specifies the suggested size for request thread pool
#
# Default:
#   thread-pool-size 10
#

#
# event-logging on|off
#
#   Enables or disables global event logging to /utils/eventlog
#
# Default:
#   event-logging off
#

#
# pid-file
#
#   Specifies the path of a pid file.
#
# Default: no pidfile
#
pid-file var/schooltool.pid

#
# error-log-file
#
#   Specifies the path of a log file used for exceptions. Special
#   values STDERR and STDOUT mean standard error and standard output
#   respectively.
#
#   You can specify more than one log file.  All messages will be duplicated
#   to all the log files.
#
# Default:
#    error-log-file STDERR
#
# Examples:
#    error-log-file /var/log/schooltool/error.log
#    error-log-file STDERR
#
error-log-file ${abspath}/log/schooltool.log
error-log-file STDERR

#
# web-access-log-file
#
#   Specifies the path of a file used for an Apache combined format
#   access log of the web application.  Special values STDERR and
#   STDOUT mean standard error and standard output respectively.
#
#   You can specify more than one log file.  All messages will be duplicated
#   to all the log files.
#
# Default:
#    web-access-log-file STDOUT
#
# Examples:
#    web-access-log-file /var/log/schooltool/access.log
#    web-access-log-file STDOUT
#
web-access-log-file ${abspath}/log/web-access.log

#
# attendance-log-file
#
#   Specifies the path of a log file used for attendance
#   logging. Special values STDERR and STDOUT mean standard error and
#   standard output respectively.
#
#   You can specify more than one log file.  All messages will be duplicated
#   to all the log files.
#
# Default:
#    attendance-log-file var/attendance.log
#
# Examples:
#    attendance-log-file /var/log/schooltool/attendance.log
#    attendance-log-file STDOUT
#
attendance-log-file ${abspath}/log/attendance.log

#
# lang
#
#   Specifies the locale of the messages to be used on the server.
#
#   If 'auto' is set, the language is chosen according to the user's
#   preference specified in the web browser configuration.
#
# Default:
#   lang auto
#
# Examples:
#   lang en-gb
#   lang es-sv
#   lang fr

#
# domain
#
#   Specifies the name of the message catalog to be used on the server.
#
# Default:
#   domain schooltool
#
# Examples:
#   domain schoolbell

#
# <zodb>
#   ...
# </zodb>
#
#   Specifies a ZODB database to use.
#   This section is required.
#

<zodb>
  # <filestorage>		traditional FileStorage
  #   path filename		required
  #   create yes|no		default: yes
  #   read-only yes|no		default: no
  #   quota size		default: no quota
  # </filestorage>
  <filestorage>
    path ${abspath}/var/Data.fs
  </filestorage>

  # <mappingstorage>		in-memory MappingStorage
  #   name storage-name		default: Mapping Storage
  # </mappingstorage>

  # <fullstorage>		BerkeleyDB based storage
  #   ...			XXX
  # </fullstorage>

  # <minimalstorage>		BerkeleyDB based storage, stripped down
  #   ...			see <fullstorage>
  # </minimalstorage>

  # <zeoclient>
  #   server address		one or more; required
  #   cache-size n		default: 20000000 (bytes)
  #   name storage-name		default: address of the server
  #   client x			enables persistent cache for client x
  #   var dirname		directory for persistent cache (default: .)
  #   min-disconnect-poll n	default: 5
  #   max-disconnect-poll n	default: 300
  #   wait yes|no		default: yes
  #   read-only yes|no		default: no
  #   read-only-fallback yes|no	default: no
  #   realm name		authentication realm
  # </zeoclient>

  # <demostorage>		currently broken
  #   name			default: Demo Storage
  #   quota			XXX
  #   ...			another section describing base storage
  # </demostorage>

  # cache-size n
  #
  # Default:
  #   cache-size 5000

  # pool-size n
  #
  # Default:
  #   pool-size 7

</zodb>

#
# reportlab_fontdir
#
#   Specifies the path to TrueType fonts (Arial and Times New Roman)
#   for ReportLab.
#
#   Comment out or set to empty string to disable reportlab.
#
# Examples:
#    reportlab_fontdir /usr/share/fonts/truetype/msttcorefonts
#
# Uncomment the following and update the path to enable PDF generation:
#reportlab_fontdir /usr/share/fonts/truetype/msttcorefonts

# devmode
#
#   Switches the Developer Mode on and off.
#
# Default:
#   devmode off
#
#devmode on
