server/serverconfig.py
branchstable
changeset 5456 d040889fac4e
parent 5426 0d4853a6e5ee
parent 5428 98e0b7421e51
child 5933 3d707b8f8a4d
equal deleted inserted replaced
5451:7b2e9f774028 5456:d040889fac4e
   123           }),
   123           }),
   124         ('session-time',
   124         ('session-time',
   125          {'type' : 'time',
   125          {'type' : 'time',
   126           'default': '30min',
   126           'default': '30min',
   127           'help': 'session expiration time, default to 30 minutes',
   127           'help': 'session expiration time, default to 30 minutes',
   128           'group': 'main', 'level': 1,
   128           'group': 'main', 'level': 3,
   129           }),
   129           }),
   130         ('connections-pool-size',
   130         ('connections-pool-size',
   131          {'type' : 'int',
   131          {'type' : 'int',
   132           'default': 4,
   132           'default': 4,
   133           'help': 'size of the connections pools. Each source supporting multiple \
   133           'help': 'size of the connections pools. Each source supporting multiple \
   134 connections will have this number of opened connections.',
   134 connections will have this number of opened connections.',
   135           'group': 'main', 'level': 1,
   135           'group': 'main', 'level': 3,
   136           }),
   136           }),
   137         ('rql-cache-size',
   137         ('rql-cache-size',
   138          {'type' : 'int',
   138          {'type' : 'int',
   139           'default': 300,
   139           'default': 300,
   140           'help': 'size of the parsed rql cache size.',
   140           'help': 'size of the parsed rql cache size.',
   141           'group': 'main', 'level': 1,
   141           'group': 'main', 'level': 3,
   142           }),
   142           }),
   143         ('undo-support',
   143         ('undo-support',
   144          {'type' : 'string', 'default': '',
   144          {'type' : 'string', 'default': '',
   145           'help': 'string defining actions that will have undo support: \
   145           'help': 'string defining actions that will have undo support: \
   146 [C]reate [U]pdate [D]elete entities / [A]dd [R]emove relation. Leave it empty \
   146 [C]reate [U]pdate [D]elete entities / [A]dd [R]emove relation. Leave it empty \
   147 for no undo support, set it to CUDAR for full undo support, or to DR for \
   147 for no undo support, set it to CUDAR for full undo support, or to DR for \
   148 support undoing of deletion only.',
   148 support undoing of deletion only.',
   149           'group': 'main', 'level': 1,
   149           'group': 'main', 'level': 3,
   150           }),
   150           }),
   151         ('keep-transaction-lifetime',
   151         ('keep-transaction-lifetime',
   152          {'type' : 'int', 'default': 7,
   152          {'type' : 'int', 'default': 7,
   153           'help': 'number of days during which transaction records should be \
   153           'help': 'number of days during which transaction records should be \
   154 kept (hence undoable).',
   154 kept (hence undoable).',
   155           'group': 'main', 'level': 1,
   155           'group': 'main', 'level': 3,
   156           }),
   156           }),
   157         ('multi-sources-etypes',
   157         ('multi-sources-etypes',
   158          {'type' : 'csv', 'default': (),
   158          {'type' : 'csv', 'default': (),
   159           'help': 'defines which entity types from this repository are used \
   159           'help': 'defines which entity types from this repository are used \
   160 by some other instances. You should set this properly so those instances to \
   160 by some other instances. You should set this properly so those instances to \
   161 detect updates / deletions.',
   161 detect updates / deletions.',
   162           'group': 'main', 'level': 1,
   162           'group': 'main', 'level': 3,
   163           }),
   163           }),
   164 
   164 
   165         ('delay-full-text-indexation',
   165         ('delay-full-text-indexation',
   166          {'type' : 'yn', 'default': False,
   166          {'type' : 'yn', 'default': False,
   167           'help': 'When full text indexation of entity has a too important cost'
   167           'help': 'When full text indexation of entity has a too important cost'
   168           ' to be done when entity are added/modified by users, activate this '
   168           ' to be done when entity are added/modified by users, activate this '
   169           'option and setup a job using cubicweb-ctl db-rebuild-fti on your '
   169           'option and setup a job using cubicweb-ctl db-rebuild-fti on your '
   170           'system (using cron for instance).',
   170           'system (using cron for instance).',
   171           'group': 'main', 'level': 1,
   171           'group': 'main', 'level': 3,
   172           }),
   172           }),
   173 
   173 
   174         # email configuration
   174         # email configuration
   175         ('default-recipients-mode',
   175         ('default-recipients-mode',
   176          {'type' : 'choice',
   176          {'type' : 'choice',
   179           'help': 'when a notification should be sent with no specific rules \
   179           'help': 'when a notification should be sent with no specific rules \
   180 to find recipients, recipients will be found according to this mode. Available \
   180 to find recipients, recipients will be found according to this mode. Available \
   181 modes are "default-dest-addrs" (emails specified in the configuration \
   181 modes are "default-dest-addrs" (emails specified in the configuration \
   182 variable with the same name), "users" (every users which has activated \
   182 variable with the same name), "users" (every users which has activated \
   183 account with an email set), "none" (no notification).',
   183 account with an email set), "none" (no notification).',
   184           'group': 'email', 'level': 1,
   184           'group': 'email', 'level': 2,
   185           }),
   185           }),
   186         ('default-dest-addrs',
   186         ('default-dest-addrs',
   187          {'type' : 'csv',
   187          {'type' : 'csv',
   188           'default': (),
   188           'default': (),
   189           'help': 'comma separated list of email addresses that will be used \
   189           'help': 'comma separated list of email addresses that will be used \
   190 as default recipient when an email is sent and the notification has no \
   190 as default recipient when an email is sent and the notification has no \
   191 specific recipient rules.',
   191 specific recipient rules.',
   192           'group': 'email', 'level': 1,
   192           'group': 'email', 'level': 2,
   193           }),
   193           }),
   194         ('supervising-addrs',
   194         ('supervising-addrs',
   195          {'type' : 'csv',
   195          {'type' : 'csv',
   196           'default': (),
   196           'default': (),
   197           'help': 'comma separated list of email addresses that will be \
   197           'help': 'comma separated list of email addresses that will be \
   203          {'type' : 'string',
   203          {'type' : 'string',
   204           'default': None,
   204           'default': None,
   205           'help': 'Pyro server host, if not detectable correctly through \
   205           'help': 'Pyro server host, if not detectable correctly through \
   206 gethostname(). It may contains port information using <host>:<port> notation, \
   206 gethostname(). It may contains port information using <host>:<port> notation, \
   207 and if not set, it will be choosen randomly',
   207 and if not set, it will be choosen randomly',
   208           'group': 'pyro', 'level': 2,
   208           'group': 'pyro', 'level': 3,
   209           }),
   209           }),
   210         ) + CubicWebConfiguration.options)
   210         ) + CubicWebConfiguration.options)
   211 
   211 
   212     # should we open connections pools (eg connect to sources). This is usually
   212     # should we open connections pools (eg connect to sources). This is usually
   213     # necessary...
   213     # necessary...