X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=blobdiff_plain;f=htsworkflow%2Ffrontend%2Fsettings.py;h=d4f94a8e3771a0d2d38696e1bed41a6f4a65ba3c;hp=852f33cb9aa0a7472ffc3cc354e562a6523d4b16;hb=b5b068e8dce90e45a41149c94b30b742655cf618;hpb=2078a8ad53370bbe1ef08a573f7ee800a71b4937 diff --git a/htsworkflow/frontend/settings.py b/htsworkflow/frontend/settings.py index 852f33c..d4f94a8 100644 --- a/htsworkflow/frontend/settings.py +++ b/htsworkflow/frontend/settings.py @@ -55,7 +55,11 @@ options = ConfigParser.SafeConfigParser( os.path.abspath('/htsworkflow/htswfrontend/dev_fctracker.db'), 'time_zone': 'America/Los_Angeles', 'default_pm': '5', - 'link_flowcell_storage_device_url': "http://localhost:8000/inventory/lts/link/" + 'link_flowcell_storage_device_url': "http://localhost:8000/inventory/lts/link/", + 'printer1_host': '127.0.0.1', + 'printer1_port': '9100', + 'printer2_host': '127.0.0.1', + 'printer2_port': '9100', }) options.read([os.path.expanduser("~/.htsworkflow.ini"), @@ -66,6 +70,9 @@ options.read([os.path.expanduser("~/.htsworkflow.ini"), # to exist in order to retrieve anything. if not options.has_section('frontend'): options.add_section('frontend') +if not options.has_section('bcprinter'): + options.add_section('bcprinter') + # Django settings for elandifier project. @@ -77,6 +84,9 @@ options_to_list(ADMINS, 'admins') MANAGERS = ADMINS +AUTHENTICATION_BACKENDS = ( 'samples.auth_backend.HTSUserModelBackend', ) +CUSTOM_USER_MODEL = 'samples.HTSUser' + EMAIL_HOST = options.get('frontend', 'email_host') EMAIL_PORT = int(options.get('frontend', 'email_port'))