comparison frontend/mfrontend/utils.py @ 13:79cf8ca2a0e5

Dodałem pobieranie informacji o podanym zadaniu oraz pobieranie zadania oczekującego poprzez API
author Michał Rudowicz <michal.rudowicz@fl9.eu>
date Fri, 01 Apr 2011 19:02:08 +0200
parents 79fc37fe85a6
children
comparison
equal deleted inserted replaced
12:5b4688e1964c 13:79cf8ca2a0e5
18 config.add_section('Basic') 18 config.add_section('Basic')
19 config.set('Basic', 'Database', 'baza.sqlite') 19 config.set('Basic', 'Database', 'baza.sqlite')
20 config.set('Basic', 'Debug', '0') 20 config.set('Basic', 'Debug', '0')
21 config.set('Basic', 'Secret_Key', randomString(10)) 21 config.set('Basic', 'Secret_Key', randomString(10))
22 config.set('Basic', 'HashCrypto', 'sha512') 22 config.set('Basic', 'HashCrypto', 'sha512')
23 config.set('Basic', 'ApiKey', randomString(10))
23 with open('config.ini', 'wb') as configfile: 24 with open('config.ini', 'wb') as configfile:
24 config.write(configfile) 25 config.write(configfile)
25 26
26 def hashPassword(password): 27 def hashPassword(password):
27 """Funkcja hashuje hasła.""" 28 """Funkcja hashuje hasła."""