775 Commits

Author SHA1 Message Date
Thomas Waldmann
fb84008b74 fix pep8 issue, disable one pep8 warning 2015-06-04 12:47:11 +02:00
Thomas Waldmann
0f2e0235cb "faults" management command: use atomic transaction PER HOST
This was an atomic transaction per ALL hosts (IIRC introduced in the hope of better speed).
But a frequently occurring problem was that it processed SOME hosts, then ran into a
database locked error and then it rolled back all the changes and aborted processing for all hosts.

This led to the strange behaviour that users got emails about abuse flag being set, but it wasn't set.
And also other stuff behaved wrong, like fault counters.

Now, the atomic transaction is per host, so a host is either processed completely and correctly or rolled back.
If an exception happens, the roll back occurs, the traceback is logged and we just continue with next host.
2015-06-04 12:06:21 +02:00
Thomas Waldmann
21c1a9dab7 upgrade jquery to 1.11.3 2015-06-04 10:58:50 +02:00
Thomas Waldmann
0bba7d30e5 upgrade to bootstrap 3.3.4 and also use other cdn 2015-06-04 10:57:34 +02:00
Thomas Waldmann
95e9cabf65 avoid that invalid domains get added, fixes #205 2015-06-04 10:49:04 +02:00
Thomas Waldmann
1765bd6b13 fix traceback when language in user profile is None, fixes #206 2015-06-04 10:33:11 +02:00
Thomas Waldmann
ceb016ab9b fix: always compute rh_fqdn 2015-04-25 17:58:10 +02:00
Thomas Waldmann
0c425e1411 fix format string 2015-04-25 17:55:12 +02:00
Thomas Waldmann
b6528b748d add migration for prev. changeset 2015-04-25 17:42:27 +02:00
Thomas Waldmann
c8d87270b6 do not set A or AAAA record if IFID field is blank
in fact, even delete the A or AAAA record if the field is blank and an update is received.

sometimes it makes sense to have only ipv6 records in DNS if you only have 1 public ipv4.
then you can reach your devices without getting (maybe wrong or not port-forwarded) v4 addresses on lookup.
2015-04-25 17:33:02 +02:00
Thomas Waldmann
3c36a2ca6f bump version to 0.11.0 2015-02-14 18:11:21 +01:00
Thomas Waldmann
9233deb017 some people forget to change the service email, so rather use an example one than a real one 2015-02-08 20:42:24 +01:00
Thomas Waldmann
bdf0af0c3d upgrade font-awesome cdn link from 4.2.0 to 4.3.0 2015-02-08 20:06:48 +01:00
Thomas Waldmann
a8921abe67 upgrade jQuery cdn link from 1.11.1 to 1.11.2 2015-02-08 19:56:54 +01:00
Thomas Waldmann
a617d21d07 upgrade bootstrap cdn links from 3.3.1 to 3.3.2 2015-02-08 19:55:04 +01:00
Thomas Waldmann
19f0d76c2a render error pages using base template 2015-02-08 19:38:01 +01:00
Thomas Waldmann
dd11a45108 improve error pages, add 403 2015-02-08 19:25:10 +01:00
Thomas Waldmann
b87babb9ac move http error page templates to where they are expected (and work) 2015-02-08 19:18:40 +01:00
Thomas Waldmann
50f8d72408 adjust timeout / retry timing
resolver timeout 5 -> 10s (so it has more chances to query both nameservers alternatingly)

unavailable retry 300 -> 120s (so in case of a temporary problem, the outage is shorter)
2015-01-26 22:18:01 +01:00
Thomas Waldmann
b562c0fd7e add the option to prefer the primary nameserver in query_ns, use it for domain checker, 2015-01-26 22:04:06 +01:00
Thomas Waldmann
a0dee62a5f revert 8994be6ca1c44f5c9cee5ac5a2c24d8e1ac822c9ee5ac5a2c24d8e1ac822c9, fixes #198
list_display_links just links the given column to the record represented by the whole line,
NOT to the record (foreign key) represented by that individual column.
2015-01-26 20:56:40 +01:00
Thomas Waldmann
0c95fbacaf catch EOFError exception, add note about readable exception messages PR, fixes #197 2015-01-26 18:07:43 +01:00
Thomas Waldmann
f6f98e7971 using + for lazy translated strings doesn't work, with a unicode(!) template string % works as expected
note: with str template string, it doesn't work!
2015-01-16 13:53:56 +01:00
Thomas Waldmann
0d8f6cc82e catch socket.error (e.g. "connection refused"), fixes #195 2015-01-09 21:46:30 +01:00
Thomas Waldmann
01f426deb9 fix code to succeed with tests for related host views 2015-01-02 21:21:37 +01:00
elnappo
a0c0ba467c fixed missing url parm for related_host_overview 2015-01-02 14:25:06 +01:00
elnappo
2963e60aa2 add more test for main views (mostly 404) 2015-01-02 14:18:49 +01:00
elnappo
a5f0a00e79 add some tests 2015-01-02 13:19:51 +01:00
elnappo
d6949e5178 Merge branch 'master' of github.com:nsupdate-info/nsupdate.info 2014-12-29 17:28:28 +01:00
elnappo
e69fe96904 New layout for user area (change password, delete acc, change profil) 2014-12-29 17:27:45 +01:00
Thomas Waldmann
4906a28f31 catch IndexError when computing IP of related hosts, fixes #190 2014-12-28 18:33:11 +01:00
elnappo
8994be6ca1 minor admin interface improvments 2014-12-28 15:53:22 +01:00
elnappo
419704618d replace __unicode__() with text_type for python3 2014-12-28 14:52:17 +01:00
elnappo
bc8041fd26 remove unicode_literals from account models 2014-12-28 14:24:05 +01:00
elnappo
37bb496e3b dont use unicode_literals 2014-12-28 14:19:24 +01:00
elnappo
1897c9a913 replace PermissionDenied with Http404 2014-12-28 14:07:06 +01:00
elnappo
cbc181024f
python3 compatibility for account models 2014-12-06 12:43:35 +01:00
elnappo
ca34ca3e0d
remove all __unicode__() for python3 compatibility 2014-12-06 12:35:20 +01:00
elnappo
75fc8627d7
add python_2_unicode_compatible in models.py #189 2014-12-05 20:33:15 +01:00
elnappo
cbab1a5d17
only show "(unkown)" in overview when hosts has this record, add some trans tags 2014-12-05 19:38:26 +01:00
ThomasWaldmann
1d262b4f1e Merge pull request #186 from jluebbe/master
add registration_closed template
2014-11-28 19:57:52 +01:00
Jan Luebbe
c48e7dc5fc add registration_closed template 2014-11-28 16:48:30 +01:00
Thomas Waldmann
58aae90b0a management commands sending emails: translate texts for the email recipient 2014-11-28 00:31:22 +01:00
Thomas Waldmann
ae61712fbc management commands sending emails: mark strings as translatable 2014-11-27 22:55:10 +01:00
Thomas Waldmann
0db2e60263 fix resolving to not add the service server's domain, but just "." 2014-11-27 20:03:34 +01:00
Thomas Waldmann
6261b64b72 catch more query_ns exceptions. try update/delete even if query_ns failed.
it could be maybe the secondary DNS that failed for query_ns, so we can still try talking to the primary.
2014-11-27 10:47:34 +01:00
elnappo
e2db28a9fb fix #183 2014-11-26 10:50:54 +01:00
elnappo
e51792f344 add console.EmailBackend to dev settings 2014-11-26 10:49:25 +01:00
elnappo
1de8a9aaf6 Merge branch 'master' of github.com:nsupdate-info/nsupdate.info 2014-11-26 10:39:26 +01:00
Thomas Waldmann
202d3bc2dd fix migration, only works like that
previous code gave:

ValueError: Cannot assign "<User: joedoe>": "UserProfile.user" must be a "User" instance.
2014-11-26 00:23:52 +01:00