Hidden Z
|
623134e1a2
|
pyi2phosts/lib/utils.py: add get_b32()
Because we want to use b64->b32 conversion from different places, move
in to our library.
|
14 years ago |
Hidden Z
|
6fb4d60ce6
|
Rename web -> pyi2phosts
|
14 years ago |
Hidden Z
|
489f1c9f15
|
web/lib/utils.py: add workaround for django
It helps to avoid multiple root loggers.
|
14 years ago |
Hidden Z
|
4fa014add4
|
web/lib/utils.py: remove unneeded check_logger_options()
|
14 years ago |
Hidden Z
|
c9c4e189e4
|
web/lib/utils.py: add validate_config()
New function for handle config validation.
http://www.voidspace.org.uk/python/articles/configobj.shtml#validation
|
14 years ago |
Hidden Z
|
891472cfac
|
web/lib/utils.py: add check_logger_options()
We need to check config options for logger in various scripts, and this
check is almost same, so move it to separate function.
|
14 years ago |
Hidden Z
|
1cff3cedcb
|
web/lib/utils.py: bugfix: take WatchedFileHandler properly
|
14 years ago |
Hidden Z
|
e1be09b22f
|
web/lib/utils.py: use WatchedFileHandler
Let admins safely rotate the logfiles with logrotate(8).
|
14 years ago |
Hidden Z
|
85263b65cc
|
web/lib/utils.py: a set of various utils for project
And firstly write get_logger() function. It provides common mechanism
for creating logger instances inside scripts.
|
14 years ago |