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
Hidden Z
1acd9f8e78
conf/builder.conf: config file for builder
2010-10-30 18:37:23 +00:00
Hidden Z
47d0957550
py-i2phosts-builder: add cli and config option for output file
2010-10-30 18:34:39 +00:00
Hidden Z
6bfc7d7fb3
py-i2phosts-builder: use config for django setup
2010-10-30 18:28:50 +00:00
Hidden Z
e64139d729
py-i2phosts-builder: add config file support
2010-10-30 18:23:56 +00:00
Hidden Z
00b98dfc93
py-i2phosts-builder: add command line options support
2010-10-30 18:23:14 +00:00
Hidden Z
b5e5cdf81e
Add default configs
2010-10-30 18:16:16 +00:00
Hidden Z
297c9e9b55
py-i2phosts-injector: replace print() with sys.stdout.write()
2010-10-30 18:12:05 +00:00
Hidden Z
4755c0d35b
py-i2phosts-injector: replace sys.stderr with sys.stdout where needed
...
Writing such kind of messages to stderr was a mistake.
2010-10-30 18:10:42 +00:00
Hidden Z
1e4933624a
py-i2phosts-injector: use config value for "approved"
2010-10-30 18:09:22 +00:00
Hidden Z
a3a4d1ef51
py-i2phosts-injector: use config options in django setup
2010-10-30 18:09:00 +00:00
Hidden Z
596981b854
py-i2phosts-injector: add config file support
2010-10-30 18:07:52 +00:00
Hidden Z
08eedf6f2d
py-i2phosts-fetcher: log injector's output
2010-10-30 18:03:04 +00:00
Hidden Z
802c79b156
py-i2phosts-fetcher: add debug message
2010-10-30 17:59:57 +00:00
Hidden Z
af60e019f8
py-i2phosts-fetcher: handle httplib errors when fetching data
2010-10-30 17:57:34 +00:00
Hidden Z
a7d98d8cf5
py-i2phosts-fetcher: replace print() and sys.std*() with log.<level>()
2010-10-30 17:55:37 +00:00
Hidden Z
31e1cb0706
py-i2phosts-fetcher: add logger using our get_logger()
2010-10-30 17:53:39 +00:00
Hidden Z
522cbd468c
py-i2phosts-fetcher: read configuration options from config file
2010-10-30 17:52:52 +00:00
Hidden Z
dd46733afd
py-i2phosts-fetcher: add command-line options support
2010-10-30 17:48:04 +00:00
Hidden Z
6c325725b0
py-i2phosts-checker: properly check DJANGO_PROJECT_PATH variable in config
2010-10-30 17:35:19 +00:00
Hidden Z
fd380a2d4a
py-i2phosts-checker: include another config only if "include" is present
2010-10-30 17:31:57 +00:00
Hidden Z
d3cc2e6b83
py-i2phosts-checker: remove unneded import
2010-10-29 20:59:14 +00:00
Hidden Z
0833ff0adc
py-i2phosts-checker: add log message
2010-10-29 20:54:51 +00:00
Hidden Z
59254857ad
py-i2phosts-checker: configure logger using get_logger()
2010-10-29 20:54:21 +00:00
Hidden Z
a461c3cbe9
py-i2phosts-checker: take DJANGO_PROJECT_PATH from config
2010-10-29 20:53:43 +00:00
Hidden Z
cf5e82c65f
py-i2phosts-checker: read config with configobj module
2010-10-29 20:50:14 +00:00
Hidden Z
76e6685a15
py-i2phosts-checker: add --config option
2010-10-29 20:48:44 +00:00
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.
2010-10-29 20:45:10 +00:00