Hidden Z
67ae54ab91
py-i2phosts-maint: add log message
2010-11-02 17:08:24 +00:00
Hidden Z
e48e67705f
py-i2phosts-builder: require "hostsfile" to be defined
...
"hostsfile" should be defined by passing command-line option "-f" or
using config option
2010-11-02 16:28:45 +00:00
Hidden Z
7351534f88
py-i2phosts-builder: use validate_config()
2010-11-02 16:28:01 +00:00
Hidden Z
c3a218978a
py-i2phosts-master: use validate_config()
2010-11-02 16:20:56 +00:00
Hidden Z
833b370d35
py-i2phosts-fetcher: use validate_config()
2010-11-02 16:19:18 +00:00
Hidden Z
50386d3f70
py-i2phosts-fetcher: update last_success only after injector's run
2010-11-02 16:09:31 +00:00
Hidden Z
999ad9577f
py-i2phosts-fetcher: use temp files for storing fetched content
2010-11-02 16:07:08 +00:00
Hidden Z
6e125f5ef0
Add conf/master.conf - config for master
2010-11-01 21:27:33 +00:00
Hidden Z
f68662f7b5
Add py-i2phosts-master
...
Master daemon needed for periodic run all other components.
2010-11-01 21:25:57 +00:00
Hidden Z
dafd5df3fb
py-i2phosts-builder: add -d/--debug
...
Currently it does nothing, but may be used later.
2010-11-01 21:23:07 +00:00
Hidden Z
4fa014add4
web/lib/utils.py: remove unneeded check_logger_options()
2010-11-01 21:22:20 +00:00
Hidden Z
c4535f353a
py-i2phosts-fetcher: stop using check_logger_options()
2010-11-01 21:21:26 +00:00
Hidden Z
7550b01e05
py-i2phosts-checker: stop using check_logger_options()
2010-11-01 21:21:26 +00:00
Hidden Z
2b898422f1
py-i2phosts-maint: stop using check_logger_options()
2010-11-01 21:21:26 +00:00
Hidden Z
389194b66d
py-i2phosts-maint: use validate_config()
2010-11-01 21:21:26 +00:00
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
2010-11-01 21:21:14 +00:00
Hidden Z
3068a7279d
conf/checker.conf: remove unneeded options
2010-11-01 21:05:34 +00:00
Hidden Z
00f066fd2d
py-i2phosts-checker: remove daemonization
...
We will use separate master process.
2010-11-01 21:04:55 +00:00
Hidden Z
5957ee9bbe
py-i2phosts-fetcher: remove unneeded import
2010-10-31 20:48:40 +00:00
Hidden Z
b03396106c
conf/checker.conf: add new options
2010-10-31 20:46:47 +00:00
Hidden Z
26a87c4bb1
py-i2phosts-checker: optionally run fetcher/maint/builder
2010-10-31 20:46:11 +00:00
Hidden Z
be103aeb7a
py-i2phosts-checker: add run_prog()
...
Needed for run other tools in common way.
2010-10-31 20:45:04 +00:00
Hidden Z
94f885a7b8
py-i2phosts-fetcher: assume that injector in PATH
2010-10-31 20:43:18 +00:00
Hidden Z
df47c06b0b
py-i2phosts-maint: use check_logger_options()
2010-10-31 19:51:30 +00:00
Hidden Z
b92c03643d
py-i2phosts-fetcher: use check_logger_options()
2010-10-31 19:51:08 +00:00
Hidden Z
4c99772834
py-i2phosts-checker: use check_logger_options()
2010-10-31 19:50:52 +00:00
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.
2010-10-31 19:48:33 +00:00
Hidden Z
0c8968f31e
conf/checker.conf: add new parameters
2010-10-31 19:28:35 +00:00
Hidden Z
8f932a3e8b
py-i2phosts-checker: add daemonisation using python-daemon module
2010-10-31 19:25:20 +00:00
Hidden Z
1cff3cedcb
web/lib/utils.py: bugfix: take WatchedFileHandler properly
2010-10-31 18:38:27 +00:00
Hidden Z
e5c471340e
conf/fetcher.conf: remove sources (unneeded now)
2010-10-31 12:33:49 +00:00
Hidden Z
a5e938b74c
py-i2phosts-fetcher: integrate with django and use 'extsources'
...
- fetcher now takes sources list for fetch from django instead of config
- Info from Last-Modified and ETag are stored in database now
- fetcher now supports ETag
2010-10-31 12:30:29 +00:00
Hidden Z
ed063a86fc
web/settings.py: add web.extsources to INSTALLED_APPS
2010-10-31 12:29:16 +00:00
Hidden Z
342ba713a4
Add extsources to django admin
2010-10-31 12:28:06 +00:00
Hidden Z
3d38fbb9b0
New app "extsources"
...
Now we keep external hosts.txt sources in django.
2010-10-31 12:26:23 +00:00
Hidden Z
d9eb21932e
web/lib/validation.py: add validate_i2purl()
...
We need it for URL validation when adding external hosts sources.
2010-10-31 12:24:28 +00:00
Hidden Z
9f3773cebf
web/lib/validation.py: use plain ValidationError
2010-10-31 10:30:01 +00:00
Hidden Z
d398eca9ab
py-i2phosts-checker: update help text for --debug
2010-10-30 21:55:00 +00:00
Hidden Z
0e2f3c12aa
py-i2phosts-checker: add -v/--verbose option
...
Act as --debug, bug use 'info' loglevel
2010-10-30 21:54:23 +00:00
Hidden Z
1574c1d13f
py-i2phosts-checker: bugfix: quote sam_addr
2010-10-30 21:52:50 +00:00
Hidden Z
e1be09b22f
web/lib/utils.py: use WatchedFileHandler
...
Let admins safely rotate the logfiles with logrotate(8).
2010-10-30 21:31:30 +00:00
Hidden Z
e0f1cb5a84
conf/maintainer.conf: config file for py-i2phosts-maint
2010-10-30 20:55:13 +00:00
Hidden Z
d0388bc7e2
py-i2phosts-maint: use config values instead of hardcoded ones
2010-10-30 20:54:04 +00:00
Hidden Z
1d909dc522
py-i2phosts-maint: add config file validation
2010-10-30 20:53:33 +00:00
Hidden Z
fae3565684
py-i2phosts-maint: update help message for --debug
2010-10-30 19:03:14 +00:00
Hidden Z
b42a24339d
py-i2phosts-maint: use config for django setup
2010-10-30 19:01:56 +00:00
Hidden Z
f525698af3
py-i2phosts-maint: get logger with our get_logger()
2010-10-30 19:01:00 +00:00
Hidden Z
2a16ddb3d3
py-i2phosts-maint: add config file support
2010-10-30 18:56:49 +00:00
Hidden Z
c505b2ce68
py-i2phosts-checker: bugfix: pass log_file when creating a logger
2010-10-30 18:54:25 +00:00
Hidden Z
610245adcf
py-i2phosts-checker: add config option for SAM address
2010-10-30 18:46:35 +00:00