Hidden Z
|
6fb4d60ce6
|
Rename web -> pyi2phosts
|
2010-11-04 12:41:42 +00:00 |
|
Hidden Z
|
f63768095d
|
Revert "web: avoid importing or accessing modules using "web.*""
This reverts commit d50bb7a66f .
Conflicts:
web/settings.py
Do imports from pyi2phosts.*
|
2010-11-04 12:25:18 +00:00 |
|
Hidden Z
|
14d076eb4d
|
web/settings.py: prefix our apps with pyi2phosts.
We need this for correct import when installed as python package.
|
2010-11-04 12:16:50 +00:00 |
|
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
|
bf411afcd6
|
web/settings.py: add default settings for logging
|
2010-11-02 18:36:13 +00:00 |
|
Hidden Z
|
489f1c9f15
|
web/lib/utils.py: add workaround for django
It helps to avoid multiple root loggers.
|
2010-11-02 18:34:25 +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
|
4fa014add4
|
web/lib/utils.py: remove unneeded check_logger_options()
|
2010-11-01 21:22:20 +00:00 |
|
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
|
2010-11-01 21:21:14 +00:00 |
|
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.
|
2010-10-31 19:48:33 +00:00 |
|
Hidden Z
|
1cff3cedcb
|
web/lib/utils.py: bugfix: take WatchedFileHandler properly
|
2010-10-31 18:38:27 +00:00 |
|
Hidden Z
|
ed063a86fc
|
web/settings.py: add web.extsources to INSTALLED_APPS
|
2010-10-31 12:29:16 +00:00 |
|
Hidden Z
|
342ba713a4
|
Add extsources to django admin
|
2010-10-31 12:28:06 +00:00 |
|
Hidden Z
|
3d38fbb9b0
|
New app "extsources"
Now we keep external hosts.txt sources in django.
|
2010-10-31 12:26:23 +00:00 |
|
Hidden Z
|
d9eb21932e
|
web/lib/validation.py: add validate_i2purl()
We need it for URL validation when adding external hosts sources.
|
2010-10-31 12:24:28 +00:00 |
|
Hidden Z
|
9f3773cebf
|
web/lib/validation.py: use plain ValidationError
|
2010-10-31 10:30:01 +00:00 |
|
Hidden Z
|
e1be09b22f
|
web/lib/utils.py: use WatchedFileHandler
Let admins safely rotate the logfiles with logrotate(8).
|
2010-10-30 21:31:30 +00:00 |
|
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.
|
2010-10-29 20:45:10 +00:00 |
|
Hidden Z
|
4a2de846b5
|
Add custom template "base_site.html" for django admin
|
2010-10-29 18:51:17 +00:00 |
|
Hidden Z
|
f97b6f953a
|
web/settings.py: add template for local settings
|
2010-10-29 18:04:20 +00:00 |
|
Hidden Z
|
27d9aadbe8
|
web/templates/postkey.html: add h3 header before the form
|
2010-10-29 17:54:02 +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
|
893d84c08f
|
web/lib/validation.py: disallow localhost.*
|
2010-10-29 17:45:10 +00:00 |
|
Hidden Z
|
f34a78c9ab
|
web/lib/validation.py: disallow *b32.i2p and *b64.i2p
|
2010-10-29 17:44:21 +00:00 |
|
Hidden Z
|
a475034cc4
|
web/templates/index.html: adjust subscription link
|
2010-10-28 19:59: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
|
3a41972dd9
|
web/settings.py: activate django admin
|
2010-10-28 19:03:18 +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
|
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
|
2010-10-27 17:12:17 +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
|
8bdae565a5
|
web/jump: use templates for "hostname unknown/error" errors
Drop associated separate views and render templates right in jumper()
|
2010-10-25 18:27:45 +00:00 |
|
Hidden Z
|
001ee4adc7
|
web/templates/jump-unknown.html: new template for jumper
It used to display error about unknown hostname access try.
|
2010-10-25 18:25:42 +00:00 |
|
Hidden Z
|
c2b621bc69
|
web/templates/jump-error.html: new template for displaying jump errors
|
2010-10-25 18:25:07 +00:00 |
|
Hidden Z
|
e88fd224dd
|
web/other/views.py: remove useless import
|
2010-10-25 18:11:29 +00:00 |
|
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
|
2010-10-25 18:08:56 +00:00 |
|
Hidden Z
|
cff4a4cd2f
|
web/templates/jump.html: a new template for jump-redirection page
|
2010-10-25 18:07:56 +00:00 |
|
Hidden Z
|
2b265cf82e
|
web/templates/base.html: add block for <head>
|
2010-10-25 18:07:11 +00:00 |
|
Hidden Z
|
e0b9ad980c
|
web/jump/views.py: preserve GET variables when redirecting
|
2010-10-25 17:30:42 +00:00 |
|
Hidden Z
|
19023be247
|
web/templates/local/policy.html: local policy template
|
2010-10-24 18:36:15 +00:00 |
|
Hidden Z
|
db4f4acafd
|
web/templates/postkey.html: include local-policy template
|
2010-10-24 18:35:49 +00:00 |
|
Hidden Z
|
757e98197b
|
web/templates/index.html: moar default content
|
2010-10-24 18:35:17 +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
|
47ca562e32
|
web/templates/index.html: template for site-index
|
2010-10-24 13:54:49 +00:00 |
|