Hidden Z
c07b087b52
Update issues URL
8 years ago
Hidden Z
06468a3c7c
Properly setup django in standalone scripts
...
https://docs.djangoproject.com/en/dev/releases/1.7/#standalone-scripts
9 years ago
Hidden Z
6e3862d7ab
Convert tabs to spaces
9 years ago
Hidden Z
484cb5bee7
Update default DJANGO_PROJECT_PATH
11 years ago
Hidden Z
a432ef81a9
Update DJANGO_SETTINGS_MODULE in scripts
11 years ago
Hidden Z
57478a6fd0
py-i2phosts-fetcher: fix typo in comment
11 years ago
Hidden Z
c280268486
py-i2phosts-fetcher: add error handling for invoking injector
...
py-i2phosts-injector may not be launched correctly, so we want to catch
the errors.
11 years ago
Hidden Z
f917b819da
py-i2phosts-fetcher: rewrite fething errors handling
...
There were some changes between python 2.6 and 2.7 in urllib2 module
affected raising exceptions, so just update our behavior.
11 years ago
Hidden Z
4a1d0a1f96
Move py-i2phosts-* to bin/
11 years ago
Hidden Z
8bef1fd666
py-i2phosts-fetcher: improve log messages
14 years ago
Hidden Z
11453810e0
Use datetime.utcnow() instead of datetime.now()
14 years ago
Hidden Z
d5052d2aa0
py-i2phosts-fetcher: don't invoke injector with "-a"
...
Better let admin to use injector's config for this.
14 years ago
Hidden Z
0819e15db8
py-i2phosts-*: do imports from system-wide pyi2phosts
14 years ago
Hidden Z
833b370d35
py-i2phosts-fetcher: use validate_config()
14 years ago
Hidden Z
50386d3f70
py-i2phosts-fetcher: update last_success only after injector's run
14 years ago
Hidden Z
999ad9577f
py-i2phosts-fetcher: use temp files for storing fetched content
14 years ago
Hidden Z
c4535f353a
py-i2phosts-fetcher: stop using check_logger_options()
14 years ago
Hidden Z
5957ee9bbe
py-i2phosts-fetcher: remove unneeded import
14 years ago
Hidden Z
94f885a7b8
py-i2phosts-fetcher: assume that injector in PATH
14 years ago
Hidden Z
b92c03643d
py-i2phosts-fetcher: use check_logger_options()
14 years ago
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
14 years ago
Hidden Z
08eedf6f2d
py-i2phosts-fetcher: log injector's output
14 years ago
Hidden Z
802c79b156
py-i2phosts-fetcher: add debug message
14 years ago
Hidden Z
af60e019f8
py-i2phosts-fetcher: handle httplib errors when fetching data
14 years ago
Hidden Z
a7d98d8cf5
py-i2phosts-fetcher: replace print() and sys.std*() with log.<level>()
14 years ago
Hidden Z
31e1cb0706
py-i2phosts-fetcher: add logger using our get_logger()
14 years ago
Hidden Z
522cbd468c
py-i2phosts-fetcher: read configuration options from config file
14 years ago
Hidden Z
dd46733afd
py-i2phosts-fetcher: add command-line options support
14 years ago
Hidden Z
3f35ae2011
py-i2phosts-fetcher: call injector with '-a'
14 years ago
Hidden Z
e0e6113808
py-i2phosts-fetcher: add log message
14 years ago
Hidden Z
4bd9b7883f
py-i2phosts-fetcher: use os.path.mtime() for getting mtime
...
This is more efficient way than os.stat because it returns just mtime,
not full stat() info.
14 years ago
Hidden Z
1054426a91
py-i2phosts-fetcher: simple hosts.txt fetcher
...
It fetches files from remote hosts using urllib2 and local eeproxy and
runs py-i2phosts-injector for each downloaded file.
14 years ago