Thomas Waldmann
141069532d
check staleness: remove safety code after testing
2014-11-21 11:44:35 +01:00
Thomas Waldmann
5f8f17b3fe
check staleness: use a different mail text for mail after deletion
2014-11-21 11:40:49 +01:00
Thomas Waldmann
a320efab64
check staleness: some tz / default fixes
2014-11-21 11:27:33 +01:00
Thomas Waldmann
13cf70baf6
implement host staleness level, management script to check whether host IP is being updated
2014-11-21 11:00:59 +01:00
Thomas Waldmann
c432e24c0d
add a managment command "domains" to check the domains, notify owner of domain, update admin docs
...
if a nameserver is not reachable or does not answer queries for the domain, the domain is flagged as not available (and also as not public).
also added catching of PeerBadKey exception.
2014-11-16 23:05:35 +01:00
Thomas Waldmann
dd95d84404
remove deprecated commit_on_success (works for Django >= 1.6), update requirements to Django 1.6.7
2014-09-26 02:32:46 +02:00
Thomas Waldmann
66cedf5425
use FQDN namedtuple for test hostnames
2014-09-22 23:41:35 +02:00
Thomas Waldmann
5fe8f13015
rename some model attributes, add migration
...
Domain.domain to Domain.name
Host.subdomain to Host.name
BlacklistedDomain.domain to BlacklistedDomain.name_re
2014-09-21 22:31:26 +02:00
Thomas Waldmann
6554f9f1bf
abuse email msg text: make a constant from it
2014-09-02 23:57:06 +02:00
Thomas Waldmann
1f03834463
fix wrong cmdline option default for --reset-available
...
the value of reset_available option tells whether to do the reset (True) or not (False).
it has nothing to do with the value being written to h.available when the reset is executed.
2014-08-17 00:49:55 +02:00
Thomas Waldmann
7c1b260d3b
reformat / improve notification email text
2014-08-17 00:36:29 +02:00
Thomas Waldmann
df204d8ccf
add notifications by email when a host gets flagged as abusive
2014-08-17 00:18:01 +02:00
Thomas Waldmann
cafaeeb64e
use 1 transaction for the whole faults command db update
...
hopefully this is much faster than the default behaviour which does 1 transaction per save(),
so the database is not locked such a long time.
2014-05-29 20:42:29 +02:00
Thomas Waldmann
0203fdb856
make api tests also use a random hostname (but constant throughout the test session)
2013-12-25 04:42:40 +01:00
Thomas Waldmann
3d53d8f1fd
fix faults command help strings
2013-12-18 03:18:35 +01:00
Thomas Waldmann
f7d081cfc8
add tests for management commands
2013-12-18 03:16:12 +01:00
Thomas Waldmann
14b9407ab5
remove unused imports
2013-12-15 18:27:59 +01:00
Thomas Waldmann
0df4efce1c
add/fix some module-level docstrings
2013-12-15 17:09:22 +01:00
Thomas Waldmann
2c5e756f15
add --flag-abuse, add some docs about abuse handling
2013-12-01 12:17:10 +01:00
Thomas Waldmann
866ddf3bea
add available, abuse and abuse_blocked flags to Host, show on UI, script to reset flags
...
there is an issue with south and sqlite - it doesn't handle migrations that add BooleanField columns with defaults.
just use the faults script to set the flags to their correct default after migrating with south.
2013-11-30 12:32:03 +01:00
Thomas Waldmann
47724a3d6b
pep8 fixes
2013-11-30 10:10:11 +01:00
Thomas Waldmann
9970e76bb5
faults managment script: show and reset client/server fault counters
2013-11-30 08:49:53 +01:00
Thomas Waldmann
d83df3ead1
use get_user_model and AUTH_USER_MODEL
2013-11-24 09:37:47 +01:00
Thomas Waldmann
7930adc596
reinitialize test user management command
2013-11-13 03:22:54 +01:00