24 lines
658 B
Python
24 lines
658 B
Python
from configparser import ConfigParser
|
|
|
|
|
|
class Settings():
|
|
|
|
def __init__(self, session: ConfigParser):
|
|
self.session = session
|
|
|
|
def set_session(self, section: str, option: str, value: str):
|
|
return self.session.set(section, option, value)
|
|
|
|
def get_session(self, section: str, option: str):
|
|
return self.session.get(section, option)
|
|
|
|
def getint_session(self, section: str, option: str):
|
|
return self.session.getint(section, option)
|
|
|
|
def getboolean_session(self, section: str, option: str):
|
|
return self.session.getboolean(section, option)
|
|
|
|
@staticmethod
|
|
def max_line_length():
|
|
return 4096
|