Hidden Z
4fa014add4
web/lib/utils.py: remove unneeded check_logger_options()
14 years ago
Hidden Z
c9c4e189e4
web/lib/utils.py: add validate_config()
...
New function for handle config validation.
http://www.voidspace.org.uk/python/articles/configobj.shtml#validation
14 years ago
Hidden Z
891472cfac
web/lib/utils.py: add check_logger_options()
...
We need to check config options for logger in various scripts, and this
check is almost same, so move it to separate function.
14 years ago
Hidden Z
1cff3cedcb
web/lib/utils.py: bugfix: take WatchedFileHandler properly
14 years ago
Hidden Z
ed063a86fc
web/settings.py: add web.extsources to INSTALLED_APPS
14 years ago
Hidden Z
342ba713a4
Add extsources to django admin
14 years ago
Hidden Z
3d38fbb9b0
New app "extsources"
...
Now we keep external hosts.txt sources in django.
14 years ago
Hidden Z
d9eb21932e
web/lib/validation.py: add validate_i2purl()
...
We need it for URL validation when adding external hosts sources.
14 years ago
Hidden Z
9f3773cebf
web/lib/validation.py: use plain ValidationError
14 years ago
Hidden Z
e1be09b22f
web/lib/utils.py: use WatchedFileHandler
...
Let admins safely rotate the logfiles with logrotate(8).
14 years ago
Hidden Z
85263b65cc
web/lib/utils.py: a set of various utils for project
...
And firstly write get_logger() function. It provides common mechanism
for creating logger instances inside scripts.
14 years ago
Hidden Z
4a2de846b5
Add custom template "base_site.html" for django admin
14 years ago
Hidden Z
f97b6f953a
web/settings.py: add template for local settings
14 years ago
Hidden Z
27d9aadbe8
web/templates/postkey.html: add h3 header before the form
14 years ago
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.
14 years ago
Hidden Z
390ab411f7
web/postkey/views.py: add additional validation set for hostnames
...
Disallow registering set of hostnames intended for i2p project use.
14 years ago
Hidden Z
893d84c08f
web/lib/validation.py: disallow localhost.*
14 years ago
Hidden Z
f34a78c9ab
web/lib/validation.py: disallow *b32.i2p and *b64.i2p
14 years ago
Hidden Z
a475034cc4
web/templates/index.html: adjust subscription link
14 years ago
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.
14 years ago
Hidden Z
6e195df483
web/postkey/admin.py: initial admin interface for hosts managing
14 years ago
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.
14 years ago
Hidden Z
3a41972dd9
web/settings.py: activate django admin
14 years ago
Hidden Z
4bf683073f
web/postkey/models.py: add new field "approved"
...
It's needed for doing confirmations manually.
14 years ago
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
14 years ago
Hidden Z
65f6b2b395
web/postkey/models.py: add new column "expires"
...
Needed for storing info about when some host must be expired.
14 years ago
Hidden Z
8bdae565a5
web/jump: use templates for "hostname unknown/error" errors
...
Drop associated separate views and render templates right in jumper()
14 years ago
Hidden Z
001ee4adc7
web/templates/jump-unknown.html: new template for jumper
...
It used to display error about unknown hostname access try.
14 years ago
Hidden Z
c2b621bc69
web/templates/jump-error.html: new template for displaying jump errors
14 years ago
Hidden Z
e88fd224dd
web/other/views.py: remove useless import
14 years ago
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
14 years ago
Hidden Z
cff4a4cd2f
web/templates/jump.html: a new template for jump-redirection page
14 years ago
Hidden Z
2b265cf82e
web/templates/base.html: add block for <head>
14 years ago
Hidden Z
e0b9ad980c
web/jump/views.py: preserve GET variables when redirecting
14 years ago
Hidden Z
19023be247
web/templates/local/policy.html: local policy template
14 years ago
Hidden Z
db4f4acafd
web/templates/postkey.html: include local-policy template
14 years ago
Hidden Z
757e98197b
web/templates/index.html: moar default content
14 years ago
Hidden Z
9fe393fce1
web/postkey/models.py: change type of "description" field
...
Now it limited to 4 KB.
14 years ago
Hidden Z
47ca562e32
web/templates/index.html: template for site-index
14 years ago
Hidden Z
a2901385d9
web/urls.py: add urlpattern for site-index
14 years ago
Hidden Z
d46a35bb89
Add web/other/views.py: views not related to any app will be there
...
Now it has site-index view
14 years ago
Hidden Z
750c01e209
Add template for 404 error
14 years ago
Hidden Z
e44be42738
web/postkey/views.py: pass "title" to renderer
14 years ago
Hidden Z
b37cb354c8
web/templates/base.html: change title
14 years ago
Hidden Z
98a58068db
web/templates/base.html: add footer
14 years ago
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
14 years ago
Hidden Z
3230f07160
web/jump/views.py: fix redirects
...
Accessing invalid or unknown hostnames always caused a redirect loop.
14 years ago
Hidden Z
700391d6e8
validation.py: check for pasting i2p router hash
14 years ago
Hidden Z
a287860619
validation.py: fail if hash contains .i2p= (full foo.i2p=key)
14 years ago
Hidden Z
ac349547f5
validation.py: check for passing b32 address instead of base64 hash
14 years ago