No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

confspec.py 834B

1234567891011121314151617181920212223
  1. from lodel.settings.validator import SettingValidator
  2. CONFSPEC = {
  3. 'lodel2.webui': {
  4. 'standalone': ( False,
  5. SettingValidator('bool')),
  6. 'listen_address': ( '127.0.0.1',
  7. SettingValidator('dummy')),
  8. 'listen_port': ( '9090',
  9. SettingValidator('int')),
  10. 'virtualenv': (None,
  11. SettingValidator('path', none_is_valid=True)),
  12. 'uwsgicmd': ('uwsgi_python3', SettingValidator('dummy')),
  13. },
  14. 'lodel2.webui.sessions': {
  15. 'directory': ( '/tmp',
  16. SettingValidator('path')),
  17. 'expiration': ( 900,
  18. SettingValidator('int')),
  19. 'file_template': ( 'lodel2_%s.sess',
  20. SettingValidator('dummy')),
  21. }
  22. }