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
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
Hidden Z
ac3df58a3f
validation.py: hostname must not start with '.' or '-'
...
I just forgot to add this rule earlier.
2010-10-22 17:48:47 +00:00
Hidden Z
76e4ee94ce
validation.py: add hostname lenght check
...
That's not really needed, just added for avoiding
django.db.utils.DatabaseError exceptions when trying to add too long
hostname with py-i2phosts-injector
2010-10-22 17:47:27 +00:00
Hidden Z
01e01b98fa
validation.py: bugfix: look for '..' in a whole hostname, not in namepart only
2010-10-22 17:15:59 +00:00
Hidden Z
573efddf8b
validation.py: strip leading and trailing whitespaces from hostname
2010-10-22 17:14:30 +00:00
Hidden Z
6a50774e5f
web/lib/validation.py: add comment
2010-10-21 18:47:50 +00:00
Hidden Z
bb2582c62c
web/lib/validation.py: add base64-validity check
...
Base 64 hash shouldn't require more than 2 pad chars to be divided to 4
without leftover.
2010-10-21 18:44:02 +00:00
Hidden Z
2b535dbf2b
web/lib/validation.py: new b64 length check
...
b64 hash shouldn't be longer than 616 bytes. We already have length
limit in database model, but this way we can provide our custom error
message.
2010-10-21 18:40:02 +00:00
Hidden Z
bc3118ab44
web/lib/validation.py: call len() for "data" only once
...
Sort of optimisation.
2010-10-21 18:38:57 +00:00
Hidden Z
d7dce40818
Add jumpservice implementation
2010-10-17 18:18:39 +00:00
Hidden Z
dd498acf04
web/postkey/views.py: remove hash uniqueness check
...
Not needed until it moved into validation.py
2010-10-16 19:49:56 +00:00
Hidden Z
f3a79838e6
web/lib/validation.py: fix base64 validations according to zzz's explanation
2010-10-16 19:03:54 +00:00
Hidden Z
2769f0d4bc
Move validation functions to separate module
2010-10-16 18:30:08 +00:00
Hidden Z
2529b6d6c3
web/postkey/models.py: last_seen is null by default now
2010-10-16 18:22:51 +00:00
Hidden Z
150de19f32
web/postkey/views.py: fix typo
2010-10-16 16:08:49 +00:00
Hidden Z
d6c360605b
web/postkey/models.py: add "last_seen" field
2010-10-14 20:00:49 +00:00
Hidden Z
b083f59957
web/postkey/models.py: correct comment
2010-10-14 19:14:31 +00:00
Hidden Z
f2d7647b59
web/postkey/models.py: moar comments
2010-10-14 18:25:34 +00:00
Hidden Z
7410eb788d
web/postkey/models.py: add "external" field (bool)
...
It's needed for marking imported hosts from external sources.
Availability checks will not remove this hosts until other host-add
services implement auto-removing.
2010-10-14 18:21:50 +00:00
Hidden Z
5145fba180
web/postkey/models.py: add __unicode__() method
2010-10-13 18:07:52 +00:00
Hidden Z
5cb9d1943a
web/postkey/views.py: avoid adding non-unique hashes
2010-10-13 17:24:32 +00:00
Hidden Z
def26f43ef
web/postkey/models.py: permit non-unique hashes in database
...
This needed because hosts.txt already contains a duplicates. But we
shouldn't permit adding dups via webinterface.
2010-10-13 17:06:35 +00:00
Hidden Z
85981abf58
postkey/views.py: add docstrings
2010-10-07 00:56:47 +06:00
Hidden Z
dd97e57f0f
Add web/templates/success_submission.html
...
Used in page showed after submission.
2010-10-07 00:56:47 +06:00
Hidden Z
0005783d08
web/settings.py: add web.postkey to INSTALLED_APPS
2010-10-07 00:56:47 +06:00
Hidden Z
17db1b07fd
postkey/views.py: use wingets in AddForm
2010-10-07 00:56:47 +06:00
Hidden Z
548ad715aa
postkey/views.py: add "description" field in "addkey" view
2010-10-07 00:56:47 +06:00
Hidden Z
e191306c7e
postkey: add "success" view
2010-10-07 00:56:47 +06:00
Hidden Z
60ba81d91c
postkey: rename "index" to "addkey"
2010-10-07 00:56:47 +06:00
Hidden Z
8c52722996
web/templates/base.html: add "title" block and do reformat
2010-10-07 00:56:47 +06:00
Hidden Z
662399433d
web/postkey/models.py: add "description" field
2010-10-07 00:56:47 +06:00
Hidden Z
08ffe2942e
web/postkey/models.py: make "name" and "b64hash" fields unique
2010-10-07 00:56:47 +06:00
Hidden Z
e21d608b32
web/postkey/models.py: update b4hash description
2010-10-07 00:56:47 +06:00
Hidden Z
329ad74cbe
web/postkey/views.py: implement base64 hash validation
2010-10-07 00:56:46 +06:00