# -*- encoding: utf-8 -*-

import sys, os

class deploy:
    port = 17580
    host = '127.0.0.1'
    base_url = 'http://127.0.0.1:17580'
    url_prefix = ''
    debug = False
    passthrough_errors = True
    start_client = True
    pdflatex = '' # Insert the full file name of the pdflatex executable here.

class updates:
    base_url = 'http://www.dpg-verhandlungen.de/year/2011/conference/dresden/updater'
    rsa_n = 0x00abb1a3fa2ad50fadba3f28351f34f7f7bde1fe5b3468a2836aad6033ced708778624b3a498a34dee71ae107b7e04bf8432690cdfaf9f15a5eddc3aea02ab31647eef309eac4e58b825110bf7e71e04af4b708bda7937e45ae6c97c086bf00d72582cdb228c3a7e4993933e8e4b880dad30ef7253a8658a14f2937f467e31db118555e2e447ca4081fb2cde105abe4b89c96971b5dd24421b9ee6f54243656826186e2c4afe9bc6fa20cfa033a42201716a190549132d8c2968a20d32721e136126dfe54ab0c8c33d88cf08a0fcb749ff5f83193dc350bbea7599ec3ffd7aac30b97a93495ace68943c8c079a09fcabc815987acaf718704adeafa7f766b21de17c41c6b3608621c5aa2ddb8e89897d67642cd16002208cf5b080d36895b746dfa254edba28ed9b94c2a8985ad31bb7fa40f182a8bf66272529639f19c6b9805441698eb93824c851a1b733062b327acaca7350a2b6701a2c7f47caa6289269c3e35fb2f377ec58f3d21283576a212f9375c0861d8f5f58fa2b16aad618b1813db5b5c4c0a429e9f2a34b660d566cef239816f4a3ee3e324756efe49a902e44b5253e707a00143b543dad4202026af786bb80987073abc1f62c0b85d41935078f22ca137193a9ee589fc2b05faf993dd0542ee51c56d3bf5fd72b58afa8d32afd1fea43e0aee14530d97434f27e6b04f375e23eb8c342d852eb399a9b62c342b1
    rsa_e = 65537

class keys:
    cookie_secret = 'e1\x9e\x8f\xde\xa82\x99\x98s\xa6\xf3\x8d[\xed\xea~\xcb\xe3\xcfct\xe9u'
    save_secret = '\x9b\xdd\xb4\xd2\xb7\x1a\t\x9f\x04\xf8\xb4\xebo\xac\xd3*u8\x1a"j*)\x89'
    slow_hash_iterations = 10000

class general:
    languages = ['de', 'en']
    language = 'de'
    layouts = ['screen', 'mobile']
    layout = 'screen'
    base_template = 'dpg.html'
    selectionfilename = 'persoenliches_programm_auswahl;individual_program_selection'
    pdffilename = 'persoenliches_programm;individual_program'
    icsfilename = 'persoenliches_programm;individual_program'

class db:
    connect_url = 'sqlite:///%s/dd11.db' % os.path.dirname(os.path.abspath(__file__)).replace('\\', '/')
    connect_args = {}

class scip:
    year = '2011'
    conf = 'dresden'
    title = 'Dresden 2011'
    url = 'http://dresden11.dpg-tagungen.de'

class notation:
    Parts = 'Bereiche;Parts'
    by_parts = 'nach Bereichen;by parts'
    part = 'Bereich;Part'

class url:
    parts = 'parts'
    part = 'part'
    paper = 'contribution'

class session:
    description = u'Auswahlstatus für diese Sitzung: ;Selection status for this session: '
    choices = ['none', 'minimal', 'title', 'author', 'abstract']
    options = {'none': u'nicht ausgewählt;not selected',
               'minimal': u'nur Sitzungskopf (Sitzungsname, Tag, Zeit, Raum);session header only (name, time, room)',
               'title': u'Titel und präsentierender Autor;title and presenting author',
               'author': u"Titel und Autorenblock;title and authors' block",
               'abstract': u"Titel, Autorenblock und Kurzfassung;title, authors' block and abstract"}

class paper:
    description = u'Auswahlstatus für diesen Beitrag: ;selection status for this contribution: '
    search_description = u'Auswahlstatus aller Beiträge auf dieser Seite setzen auf: ;Set selection status for all contributions on this page to: '
    choices = ['likesession', 'title', 'author', 'abstract']
    options = {'likesession': u"gemäß den Sitzungseinstellungen;according to the sessions' setting",
               'title': u'Titel und präsentierender Autor;title and presenting author',
               'author': u"Titel und Autorenblock;title and authors' block",
               'abstract': u"Titel, Autorenblock und Kurzfassung;title, authors' block and abstract"}

class format:
    description = u'Ausgabeformat: ;Output style: '
    choices = ['regular', 'notes', 'ics']
    options = {'regular': u'PDF-Datei im Standardformat (zweispaltig) zum Ausdrucken;PDF file using regular format (two columns) for print',
               'notes': u'PDF-Datei im Notizformat (einspaltig + Notizspalte) zum Ausdrucken;PDF file using notes format (one column + notes column) for print',
               'ics': u'ICS-Datei zur Nutzung in Kalenderanwendungen;ICS file for use in calendar applications'}
    latex_class = 'sciplite'
    ics_priority = {'title': 6,
                    'author': 5,
                    'abstract': 4}
