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

242 Commits

Author SHA1 Message Date
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
f6f2d25426 injector: add hostname/key validation using previously created library 2010-10-16 18:34:47 +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
95f38f5ac0 injector: add new hosts with external=True 2010-10-14 18:32:03 +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
e3ec6c34bc Redefine DJANGO_PROJECT_PATH in scripts
Assume that wep-part are located in <scriptdir>/web. Later we should use
a config variable for it. In production environment scripts will be
located in /usr/bin/
2010-10-14 17:44:50 +00:00
Hidden Z
5145fba180 web/postkey/models.py: add __unicode__() method 2010-10-13 18:07:52 +00:00
Hidden Z
fd210c6fe3 injector: add command-line arguments parsing
And first option is: path to hosts.txt for parse
2010-10-13 17:32:34 +00:00
Hidden Z
40a708bb60 injector: permit adding hostnames with non-unique b64 hashes 2010-10-13 17:30:51 +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
3209120196 Add builder
This is an initial implementation of hosts.txt builder service.
2010-10-09 19:43:33 +00:00
Hidden Z
b71f2fc511 injector: use more efficient exists() method 2010-10-09 19:31:32 +00:00
Hidden Z
bc33f75238 Add injector program
This is an initial implementation of injector service needed for parse
external hosts.txt and adds hosts from them into our database.
2010-10-09 19:10:11 +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
Hidden Z
a46dc18731 Add GPLv2 license 2010-10-07 00:56:46 +06:00
Hidden Z
7a35cfdf8b .gitignore: ignore __init__.py 2010-10-07 00:56:46 +06:00
Hidden Z
3a22a9e2bf Add initial templates 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
Hidden Z
f359258a37 .gitignore: ignore local settings and vim temp files 2010-10-07 00:56:46 +06:00
Hidden Z
65a6e6824f settings.py: add import of local_settings.py 2010-10-07 00:56:46 +06:00
Hidden Z
6e9dd89fc0 settings.py: add some templates into TEMPLATE_DIRS 2010-10-07 00:56:46 +06:00
Hidden Z
99e607fd1b Import initial django project files 2010-10-07 00:56:46 +06:00
Hidden Z
911429e8bd Add .gitignore 2010-10-07 00:56:46 +06:00