Commit graph

3951 commits

Author SHA1 Message Date
Robert Sparks 64727c1c33 Reworked SMTP Exception handling, adding sending a ticket to the secretariat when there are errors handing messages off for delivery.
Added SMTP exception handling to send-scheduled-mail.

This is related to ticket #1208
 - Legacy-Id: 7138
2014-01-15 21:29:27 +00:00
Ole Laursen 886b6df981 Add match for "IESG state changed"
- Legacy-Id: 7130
2014-01-15 18:19:02 +00:00
Ole Laursen 87ca10d122 Remove usage of log_state_changed (and duplicate in
doc/utils_charter.py) in favour of add_state_change_event which has
slightly better API but otherwise does basically the same except it
sets an event type we can later search for. Also expand tests slightly
to exercise three more templates.
 - Legacy-Id: 7129
2014-01-15 17:52:00 +00:00
Ole Laursen 6b2d50db93 Implement missing charter tests as found by the coverage check
- Legacy-Id: 7127
2014-01-14 15:50:03 +00:00
Ole Laursen 7e00fa1424 Move the Secretariat group email utility to wginfo and the rest of the wgcharter stuff to doc/(views|urls|utils)_charter.py alongside the other document types
- Legacy-Id: 7121
2014-01-13 16:08:58 +00:00
Ole Laursen c4313a4f42 Add rel="nofollow" to a couple of the account links to prevent the
test crawler from going to /account/login/ and getting an error back,
with this change the crawler currently runs without reporting any
errors
 - Legacy-Id: 7114
2014-01-13 12:21:46 +00:00
Ole Laursen 591e90a7a0 Put a proper command-line interface on the test crawler, spit out number of errors (if any), also add wrapper script for running the test-crawler and idindex generation scripts, in the future other (safe, non-mutating) scripts operating on real data can be added too
- Legacy-Id: 7107
2014-01-12 16:55:42 +00:00
Ole Laursen be8eb96bec Get rid of a bunch of DB queries in all_id2_txt
- Legacy-Id: 7106
2014-01-12 14:16:37 +00:00
Ole Laursen fe6c2d67c4 Replace the Http404 in release/views.py if the changelog file is not
found with a simple error message, this mimicks the way the rest of the
Datatracker is handling missing files and avoids an annoying 404 when
running the test-crawler without all directories set up
 - Legacy-Id: 7105
2014-01-10 17:55:50 +00:00
Ole Laursen 5dcd140a63 Improve test-crawler regexp so it can catch and visit linked feed URLs
- Legacy-Id: 7104
2014-01-10 17:34:33 +00:00
Ole Laursen b4dfae121b Integrate old patch for warning on the request for publication page if
intended std level and consensus is not filled in for the draft before
sending it (as per discussion with Alice Russo) - the consensus check
is skipped for ISE drafts
 - Legacy-Id: 7103
2014-01-10 17:16:12 +00:00
Ole Laursen 2196e75550 Remove more Javascript left-over includes from nomcom/ and one in community/
- Legacy-Id: 7100
2014-01-10 14:57:45 +00:00
Ole Laursen 2922495e65 Fix bug in community list, the show_field templatetag is now getting
the fields already instantiated while the tag was expecting to
instantiate them
 - Legacy-Id: 7099
2014-01-10 14:50:17 +00:00
Ole Laursen ab382a726f While cleaning up the Javascript includes in the nomcom app, it turns
out nomcom.js is included in the wrong pages, and on the pages it is
actually useful in, it's obsolete, so delete it together with the
obsoleted AJAX view and the other JS left-over cruft in nomcom/, this
fixes an include 404 and removes the remaining dependency on
jquery-1.5.1 apart from the Secretariat tools
 - Legacy-Id: 7097
2014-01-10 14:06:36 +00:00
Ole Laursen f685e45ca5 Add select_related to PositionNomineeField in nomcom app to save a
bunch of database queries
 - Legacy-Id: 7095
2014-01-10 13:13:03 +00:00
Ole Laursen 1fb05041cc Fix duplicate name in recently added stream tests
- Legacy-Id: 7093
2014-01-09 18:11:12 +00:00
Ole Laursen 29c72ab386 Add missing tests for group documents in text format and an AJAX view
- Legacy-Id: 7092
2014-01-09 18:08:42 +00:00
Ole Laursen f591735b7d Fix subtle search bug found by stream pages tests, the query was
checking a StreamName against the slug, which happened to work with
MySQL because the stream name is the same as the slug, just uppercase
- but MySQL is case insensitive
 - Legacy-Id: 7091
2014-01-09 17:52:42 +00:00
Ole Laursen be475b8996 Add missing tests of stream document pages
- Legacy-Id: 7090
2014-01-09 17:51:05 +00:00
Ole Laursen 0b27ff13ec Add missing test of AJAX person search view, found by coverage check
- Legacy-Id: 7089
2014-01-09 17:19:56 +00:00
Ole Laursen 72db45734b Add missing sync notify page test, found by coverage check
- Legacy-Id: 7088
2014-01-09 17:13:10 +00:00
Ole Laursen 84136cb5ae Add missing doc page tests, found by the coverage check
- Legacy-Id: 7087
2014-01-09 17:03:59 +00:00
Ole Laursen 86f2baea0a Move group feed from wgcharter (where it historically ended up) to wginfo, add test
- Legacy-Id: 7086
2014-01-09 16:24:54 +00:00
Robert Sparks e3d9fbabb1 Moved the target date for ending the ietf-announce header changes forward since we missed the start date.
Commit ready for merge.
Ryan - could you apply this to the current production branch as a patch and start a cron job that runs this file daily until the 24th please?
 - Legacy-Id: 7085
2014-01-08 18:56:25 +00:00
Ole Laursen 7dcaed414d Add a simple test of the dajaxice.core.js hack for the time being
- Legacy-Id: 7084
2014-01-08 18:13:10 +00:00
Ole Laursen 3db6ae14a9 Add missing test of IPR details page, as found by coverage check
- Legacy-Id: 7083
2014-01-08 18:07:43 +00:00
Ole Laursen 5c63ed982a Implement missing iesg test of milestones page, as found by the
coverage check
 - Legacy-Id: 7082
2014-01-08 17:59:00 +00:00
Ole Laursen 09859b9e6a Implement missing submit tests as spotted by the coverage check
- Legacy-Id: 7081
2014-01-08 17:47:39 +00:00
Ole Laursen 954c8fcedb Fix spelling mistake in patterns that are ignored in coverage check
- Legacy-Id: 7080
2014-01-08 17:41:40 +00:00
Ole Laursen 5e7d8c6c08 Fix auth check for editing the metadata of a submission - the path
without an access token would not allow a Secretariat user but instead
always throw an exception
 - Legacy-Id: 7079
2014-01-08 17:40:22 +00:00
Ole Laursen 8dc19fd17e Improve the coverage checker, skip some trivial views (redirects and
flat templates)
 - Legacy-Id: 7078
2014-01-08 17:00:37 +00:00
Robert Sparks e93b5ec296 Returns "there are no ballots to view yet" rather than 404ing when the ballot link is followed for a document that exists.
It is typical for last call to be issued (which includes a link to the ballot page) well in advance of creating any ballot for a document.
Fixes bug 1233
Commit ready for merge
 - Legacy-Id: 7077
2014-01-07 23:16:44 +00:00
Robert Sparks a3da5bbd87 Sets the State(type=draft) to Replaced when a document is replaced using views_draft.replaces.
Sets the state back to Active or Expired when a document is no longer replaced by another document.
Adds tests for the above functionality.
Provides a patch to repair the state of documents pointed to by RelatedDocument(relationship__slug='replaces') objects created by views_draft.replaces before this fix.

Fixes bug 1234
Commit ready for merge
 - Legacy-Id: 7076
2014-01-07 22:58:52 +00:00
Ryan Cross 35a94362a1 changes to official proceedings generation code to support new agenda schema
- Legacy-Id: 7073
2014-01-04 00:38:44 +00:00
Ole Laursen c7a2c64c10 Get rid of fixtures that were added for the meeting tests previously, they are not used anymore, and incomplete so will not load with Django 1.6
- Legacy-Id: 7070
2013-12-24 16:14:05 +00:00
Ole Laursen d5b14f3fb3 Rewrite meeting tests: add fake data generator, rewrite the
SimpleUrlTest tests to work with fake data and expand them a bit (they
are still pretty basic), rewrite the agenda editing tests to work with
the small generated fake data, delete those tests that are trivial or
only testing fixture facts as opposed to actually exercising the code,
combine some of them, expand most to actually check the returned JSON
and generally clean up the copy-paste mess of incorrect comments and
incorrect POST data.

At this point, no tests are using the real data base test machinery,
so one can run the full test suite with just

  python manage.py test --settings=settings_sqlitetest

This takes about 72 seconds one a 2.4 GHz Intel Core 2. The
test-crawler and other real data tests take somewhat longer, though.
 - Legacy-Id: 7069
2013-12-24 16:09:33 +00:00
Ole Laursen 3408b73872 Use request.POST directly instead of aliasing it to update_dict, add a
FIXME on permission naming
 - Legacy-Id: 7068
2013-12-24 15:59:01 +00:00
Ole Laursen f8b1568c87 Rewrite meeting PUTs to POSTs. For no apparent reason, parts of the
meeting AJAX code is using PUT instead of POST (even if it's not
PUT'ing in the literal sense but POST'ing). Theoretical discussions
aside, Django has poor support for PUTs turned POSTs so rewriting them
removes the need for a couple of hacks, and makes it easier to test.
 - Legacy-Id: 7067
2013-12-24 15:13:33 +00:00
Ole Laursen 083b3138c6 Rename group AJAX URL parameter to acronym instead of groupname since
it is in fact the acronym, not the name of the group
 - Legacy-Id: 7064
2013-12-24 12:49:25 +00:00
Ole Laursen c098fb4f07 Regularize meeting_json to take num instead of meeting_num like the
other meeting AJAX views
 - Legacy-Id: 7060
2013-12-23 17:19:49 +00:00
Ole Laursen 77bd8772b5 Fix interesting syntax error in group_session_mapping, += was mistyped
as =+ which is legal (assignment followed by unary +)
 - Legacy-Id: 7059
2013-12-23 16:59:21 +00:00
Ole Laursen b4fa414406 Make agenda_permission use user_is_person, rewrite it to be a little
less verbose
 - Legacy-Id: 7054
2013-12-23 16:43:44 +00:00
Ole Laursen e69ba1e8c4 Fix spelling mistakes in comments for Constraint
- Legacy-Id: 7053
2013-12-23 16:08:36 +00:00
Ole Laursen b42a1165d7 Use .first() and prevent an extra .count() query in TimeSlot.session
- Legacy-Id: 7052
2013-12-23 15:40:10 +00:00
Ole Laursen 7dc534f325 Add a couple of select_related fields to edit_timeslots to reduce
number of DB queries from 400 to 13
 - Legacy-Id: 7051
2013-12-23 13:25:22 +00:00
Ole Laursen d6d80a4a77 Make a couple of the utility methods in meeting.models use .first(),
fix potential bug in slot_to_the_right, test on location_id instead of
location in build_timeslices to speed up the edit timeslots view
 - Legacy-Id: 7050
2013-12-23 13:24:40 +00:00
Henrik Levkowetz 9417351f39 Set version info and settings back to development mode
- Legacy-Id: 7035
2013-12-20 17:08:34 +00:00
Henrik Levkowetz 77ab20dd2b Set version info to release version 4.90 before branching.
- Legacy-Id: 7033
2013-12-20 17:08:18 +00:00
Henrik Levkowetz 01c9d5ad26 Fixed a minor bug, restoring iesg agenda document page functionality after shim-layer rewrite.
- Legacy-Id: 7031
2013-12-20 16:34:19 +00:00
Ole Laursen a5f5eb84d3 With the new test discovery mechanism in Django 1.6 (inherited from
unittest2 in Python 2.7), manually importing tests from files starting
with test* will run them twice, so don't do that
 - Legacy-Id: 7030
2013-12-20 13:08:38 +00:00
Ole Laursen 3fa1834986 Remove Person.objects.by_username/by_email for now - they aren't actually in use, the email one looks suspicious in that it takes the email from the User object, and the username one does not seem generally useful; also remove the unit tests of these two which was relying on an incomplete fixture
- Legacy-Id: 7029
2013-12-20 12:13:02 +00:00
Ole Laursen fa489ce37a Upgrade Dajaxice to latest version from github (0.5.5) to make meeting agenda code work with CSRF, with url conf import fix and using json instead of deprecated simplejson from Django - add a simple view to serve dajaxice.core.js which we need because we are not using the staticfiles collection step (apparently Dajaxice hooks into that through a somewhat complicated hack)
- Legacy-Id: 7028
2013-12-20 11:59:09 +00:00
Ole Laursen 88860edba4 Use user_is_person to determine whether user is schedule owner in
agenda AJAX, instead of complicated try except
 - Legacy-Id: 7027
2013-12-20 11:55:25 +00:00
Ole Laursen fdb6baf4e6 Use collections.OrderedDict instead of the SortedDict bundled with Django
- Legacy-Id: 7026
2013-12-20 11:00:07 +00:00
Henrik Levkowetz b68bedce30 Merged in [7009] from rcross@amsl.com: removed references to old models for shim removal release.
- Legacy-Id: 7020
Note: SVN reference [7009] has been migrated to Git commit cf81cce650
2013-12-19 17:17:58 +00:00
Ole Laursen 38c153c03d Remove usage of distinct(field) in meeting/helpers.py, Django
complains that it doesn't work on MySQL and the two uses appear
superfluous anyway since they only return the field being distincted
 - Legacy-Id: 7018
2013-12-19 16:06:37 +00:00
Ole Laursen 2cc2323b06 Speed up IPR list by adding a prefetch_related() call
- Legacy-Id: 7017
2013-12-19 11:53:41 +00:00
Ryan Cross cf81cce650 remove references to old models for shim removal release. ready for merge
- Legacy-Id: 7009
2013-12-19 04:52:33 +00:00
Henrik Levkowetz d416ae7977 Merged in a fix from Ole. A different fix for the same problem was already present, but by picking Ole's fix here we avoid hassle in the next (Django-upgrade) merge.
- Legacy-Id: 6993
2013-12-18 18:39:49 +00:00
Ole Laursen defb116721 Use prefetch_related to reduce the number of queries on the search page and in idindex generation, adjust a couple of members on Document slightly to not filter on relations (filtering doesn't work with prefetch_related)
- Legacy-Id: 6992
2013-12-18 16:58:34 +00:00
Ole Laursen a656cf8a8b Add .prefetch_related on liaison list page to reduce the number of DB
queries (from 571 to 28)
 - Legacy-Id: 6991
2013-12-18 16:30:18 +00:00
Ole Laursen cb4d5b7c2b Simplify make_test_data a bit by using the create_person helper for the chair and WG delegate, regularize the naming of those
- Legacy-Id: 6990
2013-12-18 16:27:02 +00:00
Ole Laursen 81e032b9e4 Remove unnecessary escapes from another bunch of templates
- Legacy-Id: 6989
2013-12-18 16:10:47 +00:00
Ole Laursen 23725f781c Port secr/drafts/report_id_activity.py away from setup_environ too
- Legacy-Id: 6988
2013-12-18 16:02:04 +00:00
Ole Laursen f02f2ccbfc Regenerate name fixtures, apparently the indentation of the JSON output has changed
- Legacy-Id: 6987
2013-12-18 15:53:15 +00:00
Ole Laursen e54bd17499 Port from django.core.management.setup_environ to DJANGO_SETTINGS_MODULE
- Legacy-Id: 6985
2013-12-18 15:51:11 +00:00
Ole Laursen f88fb5f9ac Port meeting fix from shimfree branch
- Legacy-Id: 6984
2013-12-18 14:56:37 +00:00
Ole Laursen 0945255452 Fix bug in meeting.helper.get_meeting - somehow managed to skip the
clause that makes sure that meetings that have no agenda yet are
skipped
 - Legacy-Id: 6983
2013-12-18 14:51:03 +00:00
Ole Laursen b72742764f Set ALLOWED_HOSTS (may need some tweaking), add LOGGING setting to
enable HTML exception emails to compensate for not carrying the HTML
patch that was applied to Django 1.2
 - Legacy-Id: 6982
2013-12-18 14:00:44 +00:00
Ole Laursen cf61f2b59b Remove a bunch of unnecessary |escape filter calls, auto-escaping is enabled by default so manual escape is only necessary in few cases
- Legacy-Id: 6981
2013-12-18 13:38:13 +00:00
Ole Laursen b84440b857 MEDIA_ROOT -> STATIC_ROOT - apparently we don't really use MEDIA_ROOT at the moment since all files are handled not through file fields, but through explicit management of their paths
- Legacy-Id: 6980
2013-12-18 13:18:58 +00:00
Ole Laursen 2cefdd7410 Add WSGI application to settings to make it use the same application
definition as live (it probably doesn't matter at the moment though)
 - Legacy-Id: 6979
2013-12-18 13:06:39 +00:00
Ole Laursen ce3e6c59de ._meta.module_name -> ._meta.model_name
- Legacy-Id: 6978
2013-12-18 12:07:04 +00:00
Ole Laursen 896da07311 Disable XViewMiddleware, it has been moved in Django 1.6 and it's not
clear whether it's serving a useful purpose
 - Legacy-Id: 6977
2013-12-18 12:01:24 +00:00
Ole Laursen e348600bcb raw_post_data -> body
- Legacy-Id: 6976
2013-12-18 11:52:21 +00:00
Ole Laursen 1dc860236f Delete ADMIN_MEDIA_PREFIX which is now gone in Django, add a pattern to the static serving so a debug/test server serves the admin static files
- Legacy-Id: 6975
2013-12-18 11:45:36 +00:00
Ole Laursen 8c35b3e6da Fix the send SDO reminder admin template to not rely on adminmedia which is now gone, also fix up the formatting and add a title
- Legacy-Id: 6973
2013-12-18 11:18:24 +00:00
Ole Laursen 1df2a37a9f Remove dead admin templates from when there was an SDOs model
- Legacy-Id: 6972
2013-12-18 11:07:39 +00:00
Ole Laursen 8afd3fa5b7 Rewrite wg_menu tag to use simple_tag instead of a full template Node,
also fix a bug in the cache apparently not being filled in correctly
 - Legacy-Id: 6971
2013-12-18 10:25:59 +00:00
Ole Laursen e2e6c243a1 Remove the complicated tag processing from ballot_icon, instead just
decorate the function with @simple_tag(takes_context=True)
 - Legacy-Id: 6970
2013-12-18 10:22:30 +00:00
Ole Laursen 35520c8473 Enable clickjacking prevention middleware
- Legacy-Id: 6969
2013-12-18 10:14:47 +00:00
Ole Laursen 7f277a8fbb Replace user.get_profile() with user.person, the profile stuff is deprecated since Django 1.5
- Legacy-Id: 6968
2013-12-18 10:13:40 +00:00
Ole Laursen ea24f5c3bd Import slugify from django.utils.text (introduced in Django 1.5)
- Legacy-Id: 6967
2013-12-18 10:00:58 +00:00
Henrik Levkowetz ecb5cd6526 Merged in branch/iola/shimfree@6856. This pretty much completes the shim removal. Next step is upgrading Django to 1.6, and then doing some final polishing.
- Legacy-Id: 6966
2013-12-17 21:29:05 +00:00
Ole Laursen d1782297ab assertEquals -> assertEqual in tests, the former is deprecated
- Legacy-Id: 6964
2013-12-17 12:52:24 +00:00
Ole Laursen 42ade6273c Turn on CSRF protection - all forms must from now on have a {% csrf_token %}
- Legacy-Id: 6963
2013-12-17 12:50:24 +00:00
Ole Laursen 52a0825985 Take advantage of new include tag that can combine the include with a
"with foo=bar" instead of having separate "with" tags
 - Legacy-Id: 6962
2013-12-17 11:08:58 +00:00
Ole Laursen 36dd439027 Rewrite ifequal/endifequal template tags to if tags with ==/!=
- Legacy-Id: 6961
2013-12-17 10:42:34 +00:00
Ole Laursen d66ac15fc2 Rewrite a bunch of HttpResponseRedirect + url reverse calls to instead
take advantage of the redirect shortcut (introduced in Django 1.1)
 - Legacy-Id: 6960
2013-12-17 10:23:42 +00:00
Ole Laursen 72e36bde55 Don't output coverage data if there are test failures
- Legacy-Id: 6959
2013-12-17 10:08:12 +00:00
Henrik Levkowetz a3761a0951 Set version info and settings back to development mode
- Legacy-Id: 6958
2013-12-16 22:34:42 +00:00
Henrik Levkowetz 180ad4f405 Set version info to release version 4.84 before branching.
- Legacy-Id: 6956
2013-12-16 22:34:39 +00:00
Henrik Levkowetz db5153b6e8 Merged [6859] from rcross@amsl.com:
fixed calls to reverse() to match new url names since code merge
 - Legacy-Id: 6954
Note: SVN reference [6859] has been migrated to Git commit 9b06fb9958
2013-12-16 22:33:54 +00:00
Henrik Levkowetz 9ef4b5779e Merged [6858] from rcross@amsl.com:
use correct URL in new IPR notification email
 - Legacy-Id: 6953
Note: SVN reference [6858] has been migrated to Git commit e45aec37ac
2013-12-16 22:26:22 +00:00
Henrik Levkowetz fa1075427a Merged [6857] from rjsparks@nostrum.com:
Script to run from cron to send daily messages to IETF Announce showing the email header field change.
This should be run from Jan 6 to Jan 20, after which point we need to deploy analagous changes to the code that constructs last call announcements.

This is related to bug #811

Commit ready for merge.
 - Legacy-Id: 6952
Note: SVN reference [6857] has been migrated to Git commit c500184eee
2013-12-16 22:25:16 +00:00
Henrik Levkowetz 24fb84c7de Merged [6701] from rjsparks@nostrum.com:
Adds pages to show what a given document refers to and what refers to it.
Fixes bug #1194
commit ready for merge
 - Legacy-Id: 6951
Note: SVN reference [6701] has been migrated to Git commit d19967ac93
2013-12-16 22:15:52 +00:00
Henrik Levkowetz e6af776a19 Merged [6672] from rjsparks@nostrum.com:
removed requirement to enter a phone number in various places on an IPR disclosure entry form

Fixes bug #1176
 - Legacy-Id: 6950
Note: SVN reference [6672] has been migrated to Git commit ac799a9874
2013-12-16 22:08:35 +00:00
Henrik Levkowetz 8b2730a499 Updated agenda test files. Looking forward to moving this to fixtures instead of live data.
- Legacy-Id: 6949
2013-12-16 22:08:00 +00:00
Henrik Levkowetz bf05a61fd9 Import SendQueue from the right place.
- Legacy-Id: 6946
2013-12-16 21:58:33 +00:00
Ole Laursen 84a9f49053 mimetype -> content_type (mimetype is deprecated)
- Legacy-Id: 6945
2013-12-16 16:53:47 +00:00
Ole Laursen 85ab33533f Move feed redirect for feed_urls.py
- Legacy-Id: 6944
2013-12-16 16:35:07 +00:00
Ole Laursen e6b12350d2 Port IPR and liaisons feed setup to new feed API too
- Legacy-Id: 6943
2013-12-16 16:33:18 +00:00
Ole Laursen 5021ed5629 Port feed setup to new feed API where each feed is a class-based view
- Legacy-Id: 6939
2013-12-16 16:29:22 +00:00
Ole Laursen d86789608a Remove use of "groupgroup" fixture from Secretariat apps, it looks
like they don't actually depend on it, and the fixture itself is
unfortunately not complete so Django refuses to load it
 - Legacy-Id: 6938
2013-12-16 13:16:29 +00:00
Ole Laursen beda4bafcd Fix bug with coverage testing
- Legacy-Id: 6937
2013-12-16 13:06:41 +00:00
Ole Laursen 0c2c5a7573 Rewrite url tags in Secretariat templates to new syntax
- Legacy-Id: 6936
2013-12-16 13:05:38 +00:00
Ole Laursen 7aa3737c3b Reenable RemoteUserMiddleware, it turns out the Secretariat tests are
using REMOTE_USER to auth instead of logging in - instead include a
little middleware class that adds the REMOTE_USER header during
testing.

Also fix problem with the empty test_label hack not working with
double-dotted Secretariat apps.
 - Legacy-Id: 6935
2013-12-16 12:59:27 +00:00
Ole Laursen e1025e67ae Fix some oddities in secauth.py
- Legacy-Id: 6934
2013-12-16 12:48:43 +00:00
Ole Laursen 77e03c7355 Fix bugs in stream edit test
- Legacy-Id: 6933
2013-12-16 11:55:15 +00:00
Ole Laursen 3d7b349e20 Remove group/tests/, it only contains two tests (on a fixture, not
really on any IETF code) and it clashes with the tests in group/tests.py
 - Legacy-Id: 6932
2013-12-16 11:53:10 +00:00
Ole Laursen 8017c8eaf2 Fix a bunch of test errors, apparently the Textarea widget in Django
now outputs a newline in the beginning - this doesn't seem make a
difference for browsers, but it means testing with PyQuery needs to
strip the text to be able to check accurately
 - Legacy-Id: 6931
2013-12-16 11:47:32 +00:00
Ole Laursen 2eb8566d2f Remove : after label_tag in templates, the colon is now included in the label_tag itself
- Legacy-Id: 6930
2013-12-13 17:34:05 +00:00
Ole Laursen b94e110a29 Disable the caching template loader again, interesting as may be, it
turns out to be really annoying when developing as it is not clever
enough to do cache invalidation, so changing a template and retesting
requires restarting the dev server
 - Legacy-Id: 6929
2013-12-13 17:30:39 +00:00
Ole Laursen 2dc4454772 Fix problem with dbtemplate loader, it wasn't declaring itself as usable
- Legacy-Id: 6928
2013-12-13 17:27:22 +00:00
Ole Laursen 0006b9ddcc Make sure all model forms have a Meta.fields attribute
- Legacy-Id: 6927
2013-12-13 17:20:02 +00:00
Ole Laursen 1cb6e701eb Enable the caching template loader for the file based templates, as
recommended by the Django documentation
 - Legacy-Id: 6926
2013-12-13 17:00:52 +00:00
Ole Laursen e324f5551e Fix some {% url %} tags with commas between arguments, which is not valid with the new url syntax
- Legacy-Id: 6925
2013-12-13 17:00:12 +00:00
Ole Laursen 3ba9424845 Fix invalid HTML in nomcom template
- Legacy-Id: 6924
2013-12-13 16:48:56 +00:00
Ole Laursen 3febf7d216 Fix odd boolean calculation in nomcom view
- Legacy-Id: 6923
2013-12-13 16:48:37 +00:00
Ole Laursen 892c7d43ce Reuse already fetched page instead of refetching it in nomcom test
- Legacy-Id: 6922
2013-12-13 16:47:57 +00:00
Ole Laursen b302ffa814 Fix bug in nomcom test, it was sending a formset without the
corresponding management form values
 - Legacy-Id: 6921
2013-12-13 16:45:04 +00:00
Ole Laursen aea222edbc Speed up nomcom tests a bit more by also only generating one certificate for the client per run
- Legacy-Id: 6920
2013-12-13 16:28:55 +00:00
Ole Laursen 466928edc2 Only generate the test NomCom certificate once instead to speed up the
Nomcom tests a bit
 - Legacy-Id: 6919
2013-12-13 16:10:49 +00:00
Ole Laursen 652a5ca17a Rewrite NomCom test data generation slightly based on the rewritten
base test data, fix problem with form previews
 - Legacy-Id: 6918
2013-12-13 15:59:52 +00:00
Ole Laursen 7f25469c6b Drop the group/person/role global fixtures, the fixture loader in
Django 1.6 refuses to load them because they have dangling foreign
keys, and in rewriting them it turns out it is easier to do so in code
- so refactor the test data generation code to have a separate
function with the unchanging base data and call that from the global
fixture setup
 - Legacy-Id: 6917
2013-12-13 15:58:36 +00:00
Ole Laursen 81e5ced4ee Remove "nominee" from FeedbackForm.Meta.fields, it doesn't exist in Feedback
- Legacy-Id: 6916
2013-12-13 15:48:13 +00:00
Ole Laursen c9984e40fc Call base class fixture handling in perma_fixtures hack rather than
duplicating the (now incorrect) code from the base class
 - Legacy-Id: 6915
2013-12-13 15:39:34 +00:00
Ole Laursen b4706af925 Fix problem with tests and RemoteUserMiddleware - it interferes with
the tests, also fix bug in previous test runner refactor
 - Legacy-Id: 6914
2013-12-13 15:37:04 +00:00
Ole Laursen a2c13b70d1 Make sure all BooleanFields have an explicit default value (with
Django < 1.6 it used to be False implicitly)
 - Legacy-Id: 6908
2013-12-13 13:30:07 +00:00
Ole Laursen dec6862787 Make GLOBAL_TEST_FIXTURES support Python functions as fixtures
- Legacy-Id: 6906
2013-12-13 13:13:03 +00:00
Ole Laursen e32d346bc5 Fix security_hash problem in nomcom tests, it's no longer a separate function
- Legacy-Id: 6905
2013-12-13 13:10:52 +00:00
Ole Laursen 191d6f5949 Changing settings to use new test runner
- Legacy-Id: 6904
2013-12-13 11:23:33 +00:00
Ole Laursen c470e57dae Port test runner to new Django interface
- Legacy-Id: 6903
2013-12-13 11:22:40 +00:00
Ole Laursen 9b8fe8bd50 Move is_safe to parameter on template filter
- Legacy-Id: 6902
2013-12-12 12:27:33 +00:00
Ole Laursen 145079c701 Fix import path in settings_sqlitetest.py
- Legacy-Id: 6901
2013-12-12 12:24:25 +00:00
Ole Laursen 2c510adca9 Fix problem with missing label= in community form field declation
- Legacy-Id: 6900
2013-12-12 12:17:26 +00:00
Ole Laursen 950efbbae3 Fix import path of syndication framework
- Legacy-Id: 6899
2013-12-12 12:16:29 +00:00
Ole Laursen 45e7f3ee8e Fix a url pattern that managed to escape the mass fixing because it is missing a space
- Legacy-Id: 6898
2013-12-12 12:14:23 +00:00
Ole Laursen ad26ab4b37 Fix some changed Django import paths in settings.py
- Legacy-Id: 6897
2013-12-12 12:13:44 +00:00
Ole Laursen 9b720d2a70 Fix bug in Secretariat MeetingModelForm, exclude was missing a , to be a tuple
- Legacy-Id: 6896
2013-12-12 12:12:03 +00:00
Ole Laursen 12960d9204 Fix bug in Secretariat GroupMilestoneForm, exclude was missing a , to be a tuple
- Legacy-Id: 6895
2013-12-12 12:11:09 +00:00
Ole Laursen fcb2dad155 Fix bug in Secretariat EditPersonForm, exclude was missing a , to be a tuple
- Legacy-Id: 6894
2013-12-12 12:10:05 +00:00
Ole Laursen fdd03eee8c Use validate_email instead of email_re to validate email
- Legacy-Id: 6893
2013-12-12 12:09:17 +00:00
Ole Laursen d1207bf000 Delete some dead code from submission form
- Legacy-Id: 6892
2013-12-12 12:08:58 +00:00
Ole Laursen 771591f0db Remove use of obsolete generic delete view
- Legacy-Id: 6891
2013-12-12 12:06:09 +00:00
Ole Laursen d1e60e533c Fix a couple of problems in previous URL conversion commit
- Legacy-Id: 6887
2013-12-11 17:13:49 +00:00
Ole Laursen 99aa5e98f3 Import update_wrapper from functools instead of from Django
- Legacy-Id: 6886
2013-12-11 17:10:26 +00:00
Ole Laursen 46247a2ba6 Port away from django.utils.truncate_(html_)words which is now gone, use the template filter versions instead
- Legacy-Id: 6885
2013-12-11 17:07:43 +00:00
Ole Laursen b3b7154890 Port ipr/feeds.py to django.core.urlresolvers.reverse_lazy
- Legacy-Id: 6884
2013-12-11 17:06:41 +00:00
Ole Laursen 6a98fec2c3 Use built-in json module in Python instead of simplejson bundled with Django
- Legacy-Id: 6883
2013-12-11 16:59:19 +00:00
Ole Laursen 2c930d0f97 Get rid of remaining use of email_re, use validate_email instead
- Legacy-Id: 6882
2013-12-11 16:47:47 +00:00
Ole Laursen 119d76ae26 Get rid of unused import of old generic view
- Legacy-Id: 6881
2013-12-11 16:44:34 +00:00
Ole Laursen 883853f09c Fix bug, TemplateView takes template_name, not template as parameter
- Legacy-Id: 6880
2013-12-11 16:43:34 +00:00
Ole Laursen c15063f3c2 Adjust the import path for feeds
- Legacy-Id: 6879
2013-12-11 16:40:49 +00:00
Ole Laursen cfa0d47ca0 Port to new class-based generic redirect and simple template views, remove utils.lazy.reverse_lazy, it's now included in Django
- Legacy-Id: 6878
2013-12-11 16:36:09 +00:00
Ole Laursen 7a86afe1ab Port templates to new {% url %} syntax with quotes around the first parameter
- Legacy-Id: 6877
2013-12-11 16:33:40 +00:00
Ole Laursen b2d69c5cbd Replace manage.py script with new script generated by Django 1.6
- Legacy-Id: 6876
2013-12-11 15:50:14 +00:00
Ole Laursen b92a49b216 Remove verify_exists=False from URLField, it is now obsolete
- Legacy-Id: 6875
2013-12-11 15:31:18 +00:00
Ole Laursen f5b2cfbc42 Make MEDIA_URL end in slash
- Legacy-Id: 6874
2013-12-11 15:29:38 +00:00
Henrik Levkowetz bafaa30fe3 Fixed a typo. Fixes issue #1216.
- Legacy-Id: 6869
2013-12-11 10:28:00 +00:00
Ryan Cross 9b06fb9958 fixed calls to reverse() to match new url names since code merge
- Legacy-Id: 6859
2013-12-09 20:41:32 +00:00
Ryan Cross e45aec37ac use correct URL in new IPR notification email
- Legacy-Id: 6858
2013-12-09 20:13:37 +00:00
Robert Sparks c500184eee Script to run from cron to send daily messages to IETF Announce showing the email header field change.
This should be run from Jan 6 to Jan 20, after which point we need to deploy analagous changes to the code that constructs last call announcements.

This is related to bug #811

Commit ready for merge.
 - Legacy-Id: 6857
2013-12-09 19:01:44 +00:00
Ole Laursen e3253b4887 Fix spelling mistake in wgcharter confirmation messages, fixes #1216
- Legacy-Id: 6856
2013-12-09 11:33:11 +00:00
Ole Laursen 371c4bb344 Fix computing meeting updated timestamp when there's either a timeslot
or a session but not both
 - Legacy-Id: 6855
2013-12-09 10:52:31 +00:00
Ole Laursen 3053bef4cc Resurrect URL coverage making it work with all tests, and move it to the test runner together with the template coverage report
- Legacy-Id: 6844
2013-12-07 19:31:32 +00:00
Ole Laursen 56f36018a2 Fix bug in secr test
- Legacy-Id: 6843
2013-12-07 19:29:32 +00:00
Ole Laursen 1c60f55fff Fix some includes in meeting test
- Legacy-Id: 6842
2013-12-07 19:28:56 +00:00
Ole Laursen 185149c46b Strip out all ADs from the working group fixtures, apparently they are not included in another permafixture so cause trouble in some tests
- Legacy-Id: 6841
2013-12-07 19:28:13 +00:00
Ole Laursen 1606890567 Trim some unused imports in the meeting tests
- Legacy-Id: 6840
2013-12-07 16:15:36 +00:00
Ole Laursen 449436744e Hide unapproved related liaison statement unless during approval it to prevent dead link
- Legacy-Id: 6839
2013-12-07 13:39:56 +00:00
Ole Laursen f935577f77 Remove some unused references to SimpleUrlTestCase
- Legacy-Id: 6838
2013-12-07 13:30:41 +00:00
Ole Laursen f1a34faf08 Rewrite main url tests and redirects test to use the test database
- Legacy-Id: 6837
2013-12-07 13:29:48 +00:00
Ole Laursen 77fc3ec134 Rewrite simple URL test in secr/sreq/tests.py to use fake data
- Legacy-Id: 6836
2013-12-07 13:10:36 +00:00
Ole Laursen f6fa699992 Fix MultiEmailField to use validate_email for validation
- Legacy-Id: 6835
2013-12-07 12:54:24 +00:00
Ole Laursen 58afa08edf Remove import of unused FKAsOneToOne
- Legacy-Id: 6834
2013-12-07 12:49:32 +00:00
Ole Laursen 924d58f935 Remove model field utilities that were needed because of brokenness in the old schema
- Legacy-Id: 6833
2013-12-07 12:37:29 +00:00
Ole Laursen 947c973724 Remove reference to redesign
- Legacy-Id: 6832
2013-12-07 12:30:58 +00:00
Ole Laursen f4283556ae Do not include ../redesign in path
- Legacy-Id: 6831
2013-12-07 12:30:41 +00:00
Ole Laursen fb55fc4c4b Replace reference to redesign.doc.models, replace redundant filter on
both type=draft and state=rfc in community script
 - Legacy-Id: 6830
2013-12-07 12:28:47 +00:00
Ole Laursen ad1f11e9a3 Remove unused profile templates
- Legacy-Id: 6829
2013-12-07 12:16:05 +00:00
Ole Laursen 7738f35283 Remove backwards compatibility person() method on Person
- Legacy-Id: 6828
2013-12-07 12:13:14 +00:00
Ole Laursen ca28fb05a6 Delete USE_DB_REDESIGN_PROXY_CLASSES setting
- Legacy-Id: 6827
2013-12-07 12:12:07 +00:00
Ole Laursen 3e709e3f24 Remove proxies
- Legacy-Id: 6826
2013-12-07 12:01:57 +00:00
Ole Laursen ae2b0e2bcc Remove use of group proxies from liaisons app, move proxy_personify_role into liaisons for the time being
- Legacy-Id: 6825
2013-12-07 11:56:32 +00:00
Ole Laursen 54464e6db2 Only show related approved liaisons (dead link found by test crawler)
- Legacy-Id: 6824
2013-12-06 18:44:01 +00:00
Ole Laursen fc991a5ba1 Revamp and add tests for ietfauth - still missing tests for most views here though
- Legacy-Id: 6823
2013-12-06 18:40:48 +00:00
Ole Laursen da91b15e16 Remove some references to shim layer
- Legacy-Id: 6822
2013-12-06 18:08:37 +00:00
Ole Laursen 18f133d1d2 Remove now unused idtracker/
- Legacy-Id: 6821
2013-12-06 18:00:44 +00:00
Ole Laursen f75339a3e3 Remove shim layer from bin/dump-draft-info
- Legacy-Id: 6820
2013-12-06 17:58:05 +00:00
Ole Laursen 48f14b8eda Remove now unused proceedings/ and meeting/proxy.py
- Legacy-Id: 6819
2013-12-06 17:40:41 +00:00
Ole Laursen 5ef84cd7df Move proceedings feed to meeting/ and remove traces of shim layer from it
- Legacy-Id: 6818
2013-12-06 16:31:02 +00:00
Ole Laursen ad9503f1ed Removing remaining traces of shim layer usage in meeting
- Legacy-Id: 6817
2013-12-06 16:10:10 +00:00
Ole Laursen 992bf0efea Fix double base2.css include in meeting landscape edit template and fix some HTML syntax errors
- Legacy-Id: 6816
2013-12-06 15:58:47 +00:00
Ole Laursen 415768bb54 Fix double includes of jQuery 1.8.2 in meeting templates, make sure
script includes are put in the "js" block rather than the "scripts"
block, the latter is for inline scripts, not script includes (this
fixes a couple of weird syntax errors)
 - Legacy-Id: 6815
2013-12-06 15:46:51 +00:00
Ole Laursen e63ac36b8f Remove shim layer from ietfauth, delete some dead code and migrate
remaining importers of ietfauth.decorators to ietfauth.utils
 - Legacy-Id: 6797
2013-12-05 16:24:03 +00:00
Ole Laursen fe5ad0c998 Remove unused i18n import in liaisonform.html
- Legacy-Id: 6796
2013-12-05 15:52:35 +00:00
Ole Laursen 5f002cf0ac Fix some test errors
- Legacy-Id: 6795
2013-12-05 15:30:17 +00:00
Ole Laursen 4250a95556 Remove proxy layer from liaisons tool, do some minor cleanups of
duplicated code, make sure the custom form widgets escape their input.

There's still a bit of custom proxying going on in the IETFHM class
hierarchy.
 - Legacy-Id: 6794
2013-12-05 13:54:48 +00:00
Ole Laursen 18743a3e96 mark_safe result from parse_email_list filter, fix an import bug
- Legacy-Id: 6792
2013-12-04 18:25:44 +00:00