Commit Graph

3 Commits

Author SHA1 Message Date
nico eaed97cf4f
utilize /etc/ directory
+ add config.py to read / touch create the etc config file

_read():
	tries to open the config files in read only mode to parse its contents.

_check():
	checks if the config file is present and then calls _read()
	if that is false it tries to touch create a new file.

	worst case scenario: file is present and holds content, the method assumes that the file isn't present. Therefore tries to touch-create a new file, if a file is against all odds present, only the mtime would be updated. Hence any file content would not be altered.

get():
	main method, calling _check()
	if a key is given return only the assigned value or None
	or return the whole dictionary
2020-02-03 20:49:52 +01:00
nico 40edb13762 final touches
# added
+ add method to escape whitespaces in keys and values

# changed
* init client handler only once and not every time
* don't try to create database on every run just on the first one

# removed
- vhosts are listed first and after that the respective nodes are listed
2019-10-24 20:31:49 +02:00
nico 1a63916b4e
pep8 and gitignore
+ add .gitignore
* some pep8 changes
2019-10-17 14:24:06 +02:00