1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-09 14:28:03 +00:00
Commit Graph

190 Commits

Author SHA1 Message Date
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
Hidden Z
4a2de846b5 Add custom template "base_site.html" for django admin 2010-10-29 18:51:17 +00:00
Hidden Z
f97b6f953a web/settings.py: add template for local settings 2010-10-29 18:04:20 +00:00
Hidden Z
27d9aadbe8 web/templates/postkey.html: add h3 header before the form 2010-10-29 17:54:02 +00:00
Hidden Z
d6dfee3f78 web/postkey/views.py: allow only 2-level domains
Until we haven't implemented subdomain auth, reject subdomains
registration via webinterface et all.
2010-10-29 17:50:21 +00:00
Hidden Z
390ab411f7 web/postkey/views.py: add additional validation set for hostnames
Disallow registering set of hostnames intended for i2p project use.
2010-10-29 17:45:46 +00:00
Hidden Z
893d84c08f web/lib/validation.py: disallow localhost.* 2010-10-29 17:45:10 +00:00
Hidden Z
f34a78c9ab web/lib/validation.py: disallow *b32.i2p and *b64.i2p 2010-10-29 17:44:21 +00:00
Hidden Z
a475034cc4 web/templates/index.html: adjust subscription link 2010-10-28 19:59:46 +00:00
Hidden Z
3f35ae2011 py-i2phosts-fetcher: call injector with '-a' 2010-10-28 19:34:35 +00:00
Hidden Z
d48b1dfcd8 py-i2phosts-injector: add comment 2010-10-28 19:34:21 +00:00
Hidden Z
2ab6566db2 py-i2phosts-injector: add argument for auto-approving hosts 2010-10-28 19:34:05 +00:00
Hidden Z
6fe4d299dd py-i2phosts-maint: activate only approved hosts 2010-10-28 19:10:57 +00:00
Hidden Z
817d4490b9 web/postkey/models.py: make date fields blank by default
Need that for make them optional in i2phost editing in django admin.
2010-10-28 19:09:16 +00:00
Hidden Z
6e195df483 web/postkey/admin.py: initial admin interface for hosts managing 2010-10-28 19:08:40 +00:00
Hidden Z
01f13f2208 web/postkey/models.py: add proxy model needed for django admin
Proxy model needed for displaying not approved hosts in django admin
separatelly.
2010-10-28 19:06:40 +00:00
Hidden Z
3a41972dd9 web/settings.py: activate django admin 2010-10-28 19:03:18 +00:00
Hidden Z
4bf683073f web/postkey/models.py: add new field "approved"
It's needed for doing confirmations manually.
2010-10-28 19:01:04 +00:00
Hidden Z
9f7b3d48fd py-i2phosts-maint: remove tabwith settings for vim 2010-10-28 18:56:09 +00:00
Hidden Z
349cb809a2 web/jump/views.py: fix original GET params order
Before this requesting /jump/example.i2p/foo?a=b&c=d produced redirect
as http://example.i2p/?i2paddresshelper=key/foo?a=b&c=d

Now it http://example.i2p/foo?a=b&c=d&i2paddresshelper=key
2010-10-27 17:12:17 +00:00
Hidden Z
376c9bb80b py-i2phosts-injector: by default add hosts as NOT activated 2010-10-27 16:22:29 +00:00
Hidden Z
6a844c42f0 py-i2phosts-injector: check for key conflicts when adding
Now we can see when key for some host are differs with our key
2010-10-27 16:16:37 +00:00
Hidden Z
9a6cc81403 py-i2phosts-maint: add workaround for situation when we updating expires first time 2010-10-27 16:16:00 +00:00
Hidden Z
e0e6113808 py-i2phosts-fetcher: add log message 2010-10-27 15:36:51 +00:00
Hidden Z
0f66ec2d49 py-i2phosts-maint: improve log messages 2010-10-26 18:16:39 +00:00
Hidden Z
76e49cfa11 py-i2phosts-maint: new script for doing hosts maintaince
It implements logic for all host-maintaince operations like:
- activating hosts
- deactivating hosts
- setting expiration date
- deleting hosts
2010-10-26 18:08:00 +00:00
Hidden Z
65f6b2b395 web/postkey/models.py: add new column "expires"
Needed for storing info about when some host must be expired.
2010-10-26 17:58:55 +00:00
Hidden Z
a3b8128002 py-i2phosts-builder: split queryset
Just for improve readability.
2010-10-26 17:57:59 +00:00
Hidden Z
8bdae565a5 web/jump: use templates for "hostname unknown/error" errors
Drop associated separate views and render templates right in jumper()
2010-10-25 18:27:45 +00:00
Hidden Z
001ee4adc7 web/templates/jump-unknown.html: new template for jumper
It used to display error about unknown hostname access try.
2010-10-25 18:25:42 +00:00
Hidden Z
c2b621bc69 web/templates/jump-error.html: new template for displaying jump errors 2010-10-25 18:25:07 +00:00
Hidden Z
e88fd224dd web/other/views.py: remove useless import 2010-10-25 18:11:29 +00:00
Hidden Z
7b5af7124a web/jump/views.py: render jump.html template when redirecting
Following "Jump service implementation hints" by zzz:
http://zzz.i2p/topics/740
2010-10-25 18:08:56 +00:00
Hidden Z
cff4a4cd2f web/templates/jump.html: a new template for jump-redirection page 2010-10-25 18:07:56 +00:00