Commit graph

19 commits

Author SHA1 Message Date
Henrik Levkowetz 7e7fadb75e Use the actual defaults from settings.py when showing the defaults on /accounts/settings/.
- Legacy-Id: 14941
2018-03-26 17:10:28 +00:00
Henrik Levkowetz 78e6707c3a Updated the cookies tests to match the new left_menu default.
- Legacy-Id: 14910
2018-03-24 15:51:31 +00:00
Lars Eggert 8a70e9773d Fix various "RemovedInDjango20Warning" warnings. Commit ready for merge.
- Legacy-Id: 13112
2017-03-25 19:16:45 +00:00
Henrik Levkowetz aa5e61d958 Updated all urlpatterns to use ietf.utils.urls.url() instead of django's,
in order to autogenerate dotted path url pattern names.  Updated a number
of url reverses to use dotted path, and removed explicit url pattern names
as needed.

Changed some imports to prevent import of ietf.urls before django
initialization was complete.


Changed 3 cases of form classes being curried to functions; django 1.10
didn't accept that.

Started converting old-style middleware classes to new-style middleware
functions (incomplete).

Tweaked a nomcom decorator to preserve function names and attributes, like
a good decorator should.

Replaced the removed django templatetag 'removetags' with our own version
which uses bleach, and does sanitizing in addition to removing explicitly
mentionied html tags.

Rewrote the filename argument handling in a management command which had
broken with the upgrade.
 - Legacy-Id: 12818
2017-02-11 14:43:01 +00:00
Henrik Levkowetz 7b95411f58 The context_instance parameter to render_to_response() and render_to_string() is now deprecated. Fixed this, and generally changed the idiom render_to_response('template.html', {}, RequestContext(request)) to the newer and simpler render(request, 'template.html', {}). About 200 instances.
- Legacy-Id: 12637
2017-01-09 21:26:30 +00:00
Henrik Levkowetz c2541ec04b Django 1.9: Removed deprecated use of django.conf.urls.patterns() from all urls*.py files.
- Legacy-Id: 12618
2016-12-22 17:21:57 +00:00
Henrik Levkowetz 834bf08d6f Added settings to use the cache back-end for sessions. Separated out the preference cookie age from the session age. Made the session age refresh on each access, and set the session timeout to 4 weeks of no access.
- Legacy-Id: 11473
2016-06-24 15:44:54 +00:00
Henrik Levkowetz f70b2d93c5 Added preference editing support for the left_menu preference setting, and refactored the preference handling code substantially. Related to issues #1659 and #1663.
- Legacy-Id: 9673
2015-06-22 18:47:28 +00:00
Henrik Levkowetz b768dbbc9a Added a preference to not display the left-hand menubar. Addresses issues #1659 and #1663.
- Legacy-Id: 9643
2015-05-22 20:03:11 +00:00
Henrik Levkowetz 9fe5976b33 Changed the cookie test suite to use PyQuery instead of regex matches against page content, which broke with the facelift changes.
- Legacy-Id: 9363
2015-04-02 19:51:16 +00:00
Tero Kivinen 79b4688f8e Added test cases for cookie code. This will test all the cookie setting code, and also adds test for draft for include_text and full_draft cookie checking. Commit ready for merge.
- Legacy-Id: 9319
2015-03-21 23:06:13 +00:00
Henrik Levkowetz 5bef5d11ae Made doc/ pyflakes-clean.
- Legacy-Id: 7462
2014-03-15 16:09:47 +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 6c56f41041 Fix broken indentation
- Legacy-Id: 6777
2013-12-02 18:12:16 +00:00
Henrik Levkowetz 413bcdabbd Set up app-specific email addresses so the respective developers will be notified about failures in code they have worked with.
- Legacy-Id: 3205
2011-07-23 12:49:56 +00:00
Henrik Levkowetz 2cd7b18ba2 Merged [2942] from kivinen@iki.fi:
Changed cookie settings to be valid for 10 years, they used to be valid
until the end of session.
 - Legacy-Id: 2950
Note: SVN reference [2942] has been migrated to Git commit 1287da3cf9c5e51e08ac6ddf704650c8808b8de6
2011-03-26 14:30:40 +00:00
Henrik Levkowetz f733c1acc8 Merged [2676] from kivinen@iki.fi:
Added new setting to the /cookies page which enables always showing
	full document text instead of showing beginning of the document. This fixes issue #551.
 - Legacy-Id: 2680
Note: SVN reference [2676] has been migrated to Git commit f7a33efea768e70c1865c3bbd084cf82cd512c78
2010-11-11 02:31:38 +00:00
Henrik Levkowetz b0576a064a Removed some unwanted non-root svn:mergeinfo properties, and added an svn:ignore property.
- Legacy-Id: 2675
2010-11-10 09:40:17 +00:00
Henrik Levkowetz 23cfcbebb1 Merged [2619] from kivinen@iki.fi:
Setting user cookies, and settable expires soon and new tags
	in id/rfc list.
 - Legacy-Id: 2634
Note: SVN reference [2619] has been migrated to Git commit ddd9b6fe4d702af5e9b132621a47f59fe2f36b4e
2010-11-06 09:33:32 +00:00