imip-agent

imiptools/config.py

147:ee2bd0ee8f55
2015-01-12 Paul Boddie Moved common filesystem functionality into a new module. Added preferences support so that the timezone and locale associated with individual users can be retrieved and used to configure the management interface. Made the default permissions of stored data a configuration setting.
     1 #!/usr/bin/env python     2      3 "Configuration settings for imiptools programs."     4      5 # The public identity of the agent.     6      7 MESSAGE_SENDER = "calendar@example.com"     8      9 # The outgoing message handling prefix.    10     11 OUTGOING_PREFIX = "people-outgoing"    12     13 # The location of the stored calendar information.    14     15 STORE_DIR = "/var/lib/imip-agent/store"    16     17 # The location of published static free/busy information.    18     19 PUBLISH_DIR = "/var/www/imip-agent/static"    20     21 # The location of user preferences information.    22     23 PREFERENCES_DIR = "/var/lib/imip-agent/preferences"    24     25 # Permissions for files.    26 # This is meant to ensure that both the agent and Web users can access files.    27     28 DEFAULT_PERMISSIONS = 0660    29     30 # The published location of the manager application.    31 # This must match any Web site configuration details for the manager.    32     33 MANAGER_PATH = "/imip-manager"    34     35 # The full URL of the manager application excluding the above path.    36 # If set to None, the details of this machine will be employed.    37     38 MANAGER_URL = None    39     40 # vim: tabstop=4 expandtab shiftwidth=4