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
Hidden Z
2b265cf82e
web/templates/base.html: add block for <head>
2010-10-25 18:07:11 +00:00
Hidden Z
e0b9ad980c
web/jump/views.py: preserve GET variables when redirecting
2010-10-25 17:30:42 +00:00
Hidden Z
19023be247
web/templates/local/policy.html: local policy template
2010-10-24 18:36:15 +00:00
Hidden Z
db4f4acafd
web/templates/postkey.html: include local-policy template
2010-10-24 18:35:49 +00:00
Hidden Z
757e98197b
web/templates/index.html: moar default content
2010-10-24 18:35:17 +00:00
Hidden Z
9fe393fce1
web/postkey/models.py: change type of "description" field
...
Now it limited to 4 KB.
2010-10-24 18:33:39 +00:00
Hidden Z
16b875177f
py-i2phosts-builder: bugfix: add newline after each record
...
Since 2858ba6084
base64 hashes appearing
in DB without newlines, so fix builder behavior.
2010-10-24 16:15:51 +00:00
Hidden Z
47ca562e32
web/templates/index.html: template for site-index
2010-10-24 13:54:49 +00:00
Hidden Z
a2901385d9
web/urls.py: add urlpattern for site-index
2010-10-24 13:53:40 +00:00
Hidden Z
d46a35bb89
Add web/other/views.py: views not related to any app will be there
...
Now it has site-index view
2010-10-24 13:51:04 +00:00
Hidden Z
750c01e209
Add template for 404 error
2010-10-24 13:50:10 +00:00
Hidden Z
e44be42738
web/postkey/views.py: pass "title" to renderer
2010-10-24 13:48:52 +00:00
Hidden Z
b37cb354c8
web/templates/base.html: change title
2010-10-24 13:48:30 +00:00
Hidden Z
98a58068db
web/templates/base.html: add footer
2010-10-24 13:48:10 +00:00
Hidden Z
d6f9f2ed99
web/jump/urls.py: modify regexp for jumper
...
Now user can juery /jump/foo.i2p/anything and it will not produce
"unknown hostname" error, instead user will be redirected to
http://foo.i2p?i2paddresshelper=key
2010-10-24 07:24:22 +00:00
Hidden Z
3230f07160
web/jump/views.py: fix redirects
...
Accessing invalid or unknown hostnames always caused a redirect loop.
2010-10-24 07:08:37 +00:00
Hidden Z
700391d6e8
validation.py: check for pasting i2p router hash
2010-10-22 19:36:49 +00:00
Hidden Z
a287860619
validation.py: fail if hash contains .i2p= (full foo.i2p=key)
2010-10-22 19:34:49 +00:00
Hidden Z
ac349547f5
validation.py: check for passing b32 address instead of base64 hash
2010-10-22 19:33:31 +00:00
Hidden Z
0cd7556774
validation.py: strip leading and trailing whitespaces from hash before processing
2010-10-22 19:31:02 +00:00
Hidden Z
584d113a06
py-i2phosts-injector: add extra newline for error message
...
This improves output readability significantly.
2010-10-22 18:51:13 +00:00
Hidden Z
5803016ec3
validation.py: update docstring for validate_hostname()
2010-10-22 18:38:33 +00:00
Hidden Z
b5c5a4051c
validation.py: check for http:/ in hostname
...
This is a common error.
2010-10-22 18:37:38 +00:00
Hidden Z
5da0cc4b59
validation.py: check if only ".i2p" supplied as hostname
...
This is a common error.
2010-10-22 18:36:05 +00:00
Hidden Z
9ea9db109a
validation.py: fix typo in message
2010-10-22 18:31:46 +00:00
Hidden Z
2ab7b2de5f
validation.py: Allow only 4ld domains and below
2010-10-22 18:29:42 +00:00
Hidden Z
0c45032178
validation.py: enhance IDN-check
...
Previously olny IDN hostnames which starts with xn-- was allowed, now
subdomains like subdomains.xn--foobar.i2p are also allowed.
2010-10-22 18:02:47 +00:00