Package web :: Module config
[hide private]
[frames] | no frames]

Source Code for Module web.config

 1  import os 
 2   
 3  DB = 'sqlite:///database.sqlite' 
 4  DEBUG = True 
 5  static = '/static' 
 6  LOGIN = '/login' 
 7   
 8  curdir = os.path.abspath(os.path.dirname(__file__)) 
 9   
10  # i18n directory. 
11  localedir = os.path.join(curdir, 'i18n') 
12  pluginsdir = os.path.join(curdir, 'pluginmanager', 'plugins') 
13  langs = ('en', 'es') 
14   
15  sitename = u"Opengnsys" 
16  siteurl = u"http://0.0.0.0:8080/" 
17  noreply_email = u"noreply@opengnsys.es" 
18  admin_email =  u"admin@opengnsys.es" 
19   
20  ## Logging 
21   
22  # Path of the log file 
23  log_file = os.path.join('log', 'opengnsys') 
24   
25  # Backup interval 
26  log_interval = 'h' 
27   
28  # Number of backup files 
29  log_backups = 1 
30   
31  ## Client 
32  client_daemon_port = 1100 
33   
34  # SSL configuration 
35  key_file = os.path.join(curdir, 'ssl', 'localhost.key') 
36  cert_file = os.path.join(curdir, 'ssl', 'localhost.pem') 
37  ca_cert = os.path.join(curdir, 'ssl', 'ca-cert.pem') 
38   
39  # NOTE: Do NOT enter any configuration after this line, otherwise that configuration will 
40  # override the configuration in test mode 
41  if os.environ.has_key('OPENGNSYS_MODE') and os.environ['OPENGNSYS_MODE'] == 'testing': 
42      from tests.testconfig import * 
43