Hidden Z
d50bb7a66f
web: avoid importing or accessing modules using "web.*"
2010-11-03 19:26:58 +00:00
Hidden Z
01964a33f8
web/postkey/views.py: remove unneeded import
2010-11-03 19:15:50 +00:00
Hidden Z
ad386eea71
Add __init__.py where needed
2010-11-03 19:04:54 +00:00
Hidden Z
c0b11b5efe
web/postkey/views.py: add submission logging
2010-11-02 18:33:46 +00:00
Hidden Z
5311169c37
web/postkey/views.py: reorder imports
2010-11-02 17:32:51 +00:00
Hidden Z
d6881adba5
web/postkey/views.py: fix typo
2010-11-02 17:32:06 +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
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
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
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
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
e44be42738
web/postkey/views.py: pass "title" to renderer
2010-10-24 13:48:52 +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
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
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
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
Hidden Z
aee0c2e34a
views.py: implement hostname checks according to I2P Naming Rules
...
http://www.i2p2.i2p/naming.html
2010-10-07 00:56:46 +06:00
Hidden Z
7434e4c8c8
Add initial urls.py and views.py
2010-10-07 00:56:46 +06:00
Hidden Z
53e564265d
Add models.py for "postkey" django app
...
"postkey" app are used to submit new i2p hostnames
2010-10-07 00:56:46 +06:00