Hidden Z
bc3118ab44
web/lib/validation.py: call len() for "data" only once
...
Sort of optimisation.
14 years ago
Hidden Z
28a04f9240
py-i2phosts-injector: add -q/--quiet option
...
With this option program should print only errors
14 years ago
Hidden Z
4bd9b7883f
py-i2phosts-fetcher: use os.path.mtime() for getting mtime
...
This is more efficient way than os.stat because it returns just mtime,
not full stat() info.
14 years ago
Hidden Z
fafa992507
py-i2phosts-checker: simple availability checker for i2p
...
It uses b32->b64 lookup test through SAM interface for determining hosts
availability. For communicating with SAM it uses python i2p library from
SAM contrib (i2p-0.8/apps/sam/python/src/i2p).
14 years ago
Hidden Z
1054426a91
py-i2phosts-fetcher: simple hosts.txt fetcher
...
It fetches files from remote hosts using urllib2 and local eeproxy and
runs py-i2phosts-injector for each downloaded file.
14 years ago
Hidden Z
af828254aa
Rename builder and injector
...
renamed: builder -> py-i2phosts-builder
renamed: injector -> py-i2phosts-injector
14 years ago
Hidden Z
d0f157450b
injector: add -s/--supress option
...
With this option messages about already existed hostnames will be
supressed.
14 years ago
Hidden Z
9b88d61af5
injector: add command-line option for description
14 years ago
Hidden Z
803bbef6c6
injector: output errors to stderr
14 years ago
Hidden Z
5e8b354f9f
injector: ignore comments and empty lines
14 years ago
Hidden Z
d7dce40818
Add jumpservice implementation
14 years ago
Hidden Z
2858ba6084
injector: strip trailing '\n' from lines
...
We don't need a corrupted hashes in db :)
14 years ago
Hidden Z
dd498acf04
web/postkey/views.py: remove hash uniqueness check
...
Not needed until it moved into validation.py
14 years ago
Hidden Z
798d5cb2a7
injector: ignore lines without '=' separator
14 years ago
Hidden Z
f3a79838e6
web/lib/validation.py: fix base64 validations according to zzz's explanation
14 years ago
Hidden Z
f6f2d25426
injector: add hostname/key validation using previously created library
14 years ago
Hidden Z
2769f0d4bc
Move validation functions to separate module
14 years ago
Hidden Z
2529b6d6c3
web/postkey/models.py: last_seen is null by default now
14 years ago
Hidden Z
150de19f32
web/postkey/views.py: fix typo
14 years ago
Hidden Z
d6c360605b
web/postkey/models.py: add "last_seen" field
14 years ago
Hidden Z
b083f59957
web/postkey/models.py: correct comment
14 years ago
Hidden Z
95f38f5ac0
injector: add new hosts with external=True
14 years ago
Hidden Z
f2d7647b59
web/postkey/models.py: moar comments
14 years ago
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.
14 years ago
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/
14 years ago
Hidden Z
5145fba180
web/postkey/models.py: add __unicode__() method
14 years ago
Hidden Z
fd210c6fe3
injector: add command-line arguments parsing
...
And first option is: path to hosts.txt for parse
14 years ago
Hidden Z
40a708bb60
injector: permit adding hostnames with non-unique b64 hashes
14 years ago
Hidden Z
5cb9d1943a
web/postkey/views.py: avoid adding non-unique hashes
14 years ago
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.
14 years ago
Hidden Z
3209120196
Add builder
...
This is an initial implementation of hosts.txt builder service.
14 years ago
Hidden Z
b71f2fc511
injector: use more efficient exists() method
14 years ago
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.
14 years ago
Hidden Z
85981abf58
postkey/views.py: add docstrings
14 years ago
Hidden Z
dd97e57f0f
Add web/templates/success_submission.html
...
Used in page showed after submission.
14 years ago
Hidden Z
0005783d08
web/settings.py: add web.postkey to INSTALLED_APPS
14 years ago
Hidden Z
17db1b07fd
postkey/views.py: use wingets in AddForm
14 years ago
Hidden Z
548ad715aa
postkey/views.py: add "description" field in "addkey" view
14 years ago
Hidden Z
e191306c7e
postkey: add "success" view
14 years ago
Hidden Z
60ba81d91c
postkey: rename "index" to "addkey"
14 years ago
Hidden Z
8c52722996
web/templates/base.html: add "title" block and do reformat
14 years ago
Hidden Z
662399433d
web/postkey/models.py: add "description" field
14 years ago
Hidden Z
08ffe2942e
web/postkey/models.py: make "name" and "b64hash" fields unique
14 years ago
Hidden Z
e21d608b32
web/postkey/models.py: update b4hash description
14 years ago
Hidden Z
329ad74cbe
web/postkey/views.py: implement base64 hash validation
14 years ago
Hidden Z
a46dc18731
Add GPLv2 license
14 years ago
Hidden Z
7a35cfdf8b
.gitignore: ignore __init__.py
14 years ago
Hidden Z
3a22a9e2bf
Add initial templates
14 years ago
Hidden Z
aee0c2e34a
views.py: implement hostname checks according to I2P Naming Rules
...
http://www.i2p2.i2p/naming.html
14 years ago
Hidden Z
7434e4c8c8
Add initial urls.py and views.py
14 years ago