- added a settings file, the settings are a python class
This commit is contained in:
42
app/settings.py
Normal file
42
app/settings.py
Normal file
@@ -0,0 +1,42 @@
|
||||
################################################################
|
||||
# Settings #
|
||||
################################################################
|
||||
#
|
||||
# This is the settings file!
|
||||
# Edit settings to your preference and restart the device
|
||||
#
|
||||
# The default for everything is False,
|
||||
# default numbers are given in comments
|
||||
#
|
||||
# Web interface colours and styles
|
||||
# can be changed in app/static/style.css
|
||||
#
|
||||
# Gui Backgrounds can be replaced in gui/ folder (.png files)
|
||||
#
|
||||
################################################################
|
||||
|
||||
class Settings:
|
||||
|
||||
def __init__(self):
|
||||
##User Interaction
|
||||
#Gui
|
||||
self.hideGuiList = False #Show the consumers in the gui
|
||||
self.allowHiding = False #Allow a user to hide from the gui consumer list
|
||||
self.onlyOneDrink = False #Hide selection for amount in the gui
|
||||
self.drinkLimit = 20 #Max amount of consumptions in the gui (default 20)
|
||||
#Web Interface
|
||||
self.disableWebIF = False #Disable Web Interface
|
||||
self.disableStats = False #Disable All Statistics
|
||||
|
||||
##Payment Incentives
|
||||
#Money Limit
|
||||
self.autoBlock = False #Automatically block user if money owed > limit
|
||||
self.autoUnblock = False #Automatically unblock user if money owed < limit
|
||||
self.blockLimit = 150 #Money limit for automatic blocking (default 150)
|
||||
#Mail Spam
|
||||
self.autoAnnoy = False #Automatically send payment eMails
|
||||
self.annoyDays = 20 #Automatically send mails every x days (default 20)
|
||||
self.annoyLimit = 100 #Money limit for autoAnnoy (default 100)
|
||||
|
||||
##Developer Settings
|
||||
self.debug = False #Show debug output in console
|
||||
Reference in New Issue
Block a user