1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-22 04:24:15 +00:00

414 Commits

Author SHA1 Message Date
Hidden Z
ca831b2d45 py-i2phosts-checker: implement multiple lookup tries
Many hosts are not resolved with first lookup b32->b64, but if we query
2nd time, host can be resolved. Because of this, some registered hosts
may be never seen while they actually up!
2013-10-10 17:29:02 +00:00
Hidden Z
b18b3af1bf checker.conf: replace sam_addr with bob_addr
We're switched to BOB, but I forgot to change config variable. Fix it.
2013-10-10 17:27:38 +00:00
Hidden Z
5608ca04cb requirements.txt: add simplejson 2013-10-09 15:49:21 +00:00
Hidden Z
3880aa9f0f Implement basic api export of all active hosts
Done by zzz request. Export all seen hosts in json format { b32: last_seen }.
2013-10-09 15:43:38 +00:00
Hidden Z
e4f5ae4a6c All hosts browsing: change sorting
Order all hosts in /browse/ by name in alphabetical order. I think it is
better, because hosts will not drift across pages at every timestamp
update.
2013-10-09 15:43:26 +00:00
Hidden Z
7327964135 Update russian translation 2013-10-08 17:15:16 +00:00
Hidden Z
33216703d1 Create separate page for contact information 2013-10-08 17:15:15 +00:00
Hidden Z
41fdd20990 Add upstart initscript for py-i2phosts-master 2013-10-07 17:12:43 +00:00
Hidden Z
e2c2eeeaae py-i2phosts-master: chown log_file before daemonization
Master log file first opened as root, than daemonization with privilege
drop happens and master then unable to log to this logfile because of
insufficient permissions. So chown logfile to "runas" user to avoid this
situation.
2013-10-07 17:12:20 +00:00
Hidden Z
3b18825e4d py-i2phosts-maint: fix log message 2013-10-07 17:12:09 +00:00
Hidden Z
285ca6d4f9 py-i2phosts-master: unify import 2013-10-07 17:11:46 +00:00
Hidden Z
99bcf464bc maintainer.conf: add missing log_level and log_file variables 2013-10-07 17:11:39 +00:00
Hidden Z
6d1db09493 setup.py: update scripts location 2013-09-29 17:52:35 +00:00
Hidden Z
de9572895e settings.py: update translations setup according to django 1.5 2013-09-29 06:37:52 +00:00
Hidden Z
484cb5bee7 Update default DJANGO_PROJECT_PATH 2013-09-27 18:50:03 +00:00
Hidden Z
a432ef81a9 Update DJANGO_SETTINGS_MODULE in scripts 2013-09-27 18:49:41 +00:00
Hidden Z
7ea817f14a Add wsgi.py 2013-09-27 18:30:52 +00:00
Hidden Z
59f0cb930f Move common static files to static-common
And also use django.contrib.staticfiles to properly handle them.
2013-09-27 18:29:43 +00:00
Hidden Z
57478a6fd0 py-i2phosts-fetcher: fix typo in comment 2013-09-27 18:29:37 +00:00
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.
2013-09-27 18:29:27 +00:00
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.
2013-09-27 18:29:12 +00:00
Hidden Z
22ef66ac48 py-i2phosts-checker: change words order in debug message 2013-09-27 18:29:02 +00:00
Hidden Z
ce5ccb5ed8 py-i2phosts-checker: add delay to receive BOB's greeting
Without this delay we're getting BOB's greeting later when expecting
lookup results.
2013-09-27 18:28:55 +00:00
Hidden Z
37e3e4a43e Rewrite py-i2phosts-checker to use BOB instead of SAM 2013-09-27 18:28:46 +00:00
Hidden Z
a8066b73ae Add requirements.txt for installing via pip 2013-09-27 18:28:03 +00:00
Hidden Z
0a77e60e72 py-i2phosts-master: add import workaround
In python-daemon 1.6 they renamed pidlockfile.py to pidfile.py.
2013-09-27 18:27:47 +00:00
Hidden Z
4a1d0a1f96 Move py-i2phosts-* to bin/ 2013-09-27 18:25:36 +00:00
Hidden Z
da34ba574a setup.py: install rundir 2013-09-27 18:25:26 +00:00
Hidden Z
154eb7f7c2 Replace deprecated imports with actual
django.conf.urls.defaults is deprecated since django 1.5

old: from django.conf.urls.defaults import *
new: from django.conf.urls import *
2013-09-27 18:19:49 +00:00
Hidden Z
34d3243fcc Use RequestContext in all render_to_response()
We have {% csrf_token %} in a templates, but the context in
render_to_response() does not provide the value.

https://docs.djangoproject.com/en/1.5/ref/contrib/csrf/
2013-09-27 18:19:49 +00:00
Hidden Z
8e2ac32684 Fix templates compatibility with django 1.5 2013-09-27 18:19:49 +00:00
Hidden Z
43bcfec7ed Fix settings import
According to django 1.5 documentation, settings should be imported as
>>> from django.conf import settings
2013-09-27 18:19:49 +00:00
Hidden Z
3557122930 Update manage.py to django 1.5 version and move it one level above 2013-09-27 18:19:49 +00:00
Hidden Z
0c7b7781d2 base.html: fix <title> 2012-03-10 16:17:26 +00:00
Hidden Z
84836a5079 Simplify pagination in browse.html
Our old pagination is incompatible with new class-based generic views,
so switch to internal django pagination for some time.
2011-12-23 18:57:42 +00:00
Hidden Z
76ee7dbd0e Migrate all function-based generic views to a class-based views 2011-12-23 18:56:47 +00:00
Hidden Z
a15bfb9cfa Replace direct_to_template generic view with class-based TemplateView
This is done as a part of migration to django 1.3. See
https://docs.djangoproject.com/en/1.3/topics/generic-views-migration/
for additional info.
2011-12-20 19:17:33 +00:00
Hidden Z
3edb8fe653 validation.py: change python version in shebang 2011-12-20 19:15:48 +00:00
Hidden Z
eec3ecbb64 rss.py: remove shebang 2011-12-20 19:15:28 +00:00
Hidden Z
1fac818b45 setup.py: package translations 2011-02-19 17:03:14 +00:00
Hidden Z
ec6d32895b Fix russian translation 2011-02-19 16:30:08 +00:00
Hidden Z
ab3567a41f base.css: remove left margin for table and increase it width
It makes browse table looks more nicely.
2011-02-19 16:27:59 +00:00
Hidden Z
e6db0d3ff2 latest.html: fix regression introduced in e3416c090eaf9c760faf690da9e0d587a6241bb2
RSS icon gets outside from h3; fix it.
2011-02-19 16:26:58 +00:00
Hidden Z
dd33ab9135 base.css: icrease right padding for div.main 2011-02-19 16:15:33 +00:00
Hidden Z
6ccc1341d9 base.css: improve look of /postkey/ page
Now list style is "outside" but list is moved to right a little, so list
looks pretty cool.
2011-02-19 16:13:48 +00:00
Hidden Z
cc50eec9c2 pyi2phosts/templates/policy.html: fix typo 2011-02-19 15:57:15 +00:00
Hidden Z
747010358e Add sample inproxy.html 2011-02-19 15:55:25 +00:00
Hidden Z
499e6f411e .gitignore: do not ignore inproxy.html 2011-02-19 15:54:21 +00:00
Hidden Z
5c1766374d base.css: return back nice menu without list-markers 2011-02-19 15:50:16 +00:00
Hidden Z
3832f58128 Upadate russian translation 2011-02-19 15:31:27 +00:00