horizon/horizon
Timur Sufiev 7023050edd Eliminate mutable default arguments
The best practice in Python is not to use mutable object (i.e. list,
dictionary, or instances of most classes) as value of default
argument (see https://goo.gl/Kwhg0T). A hacking rule to enforce this 
practice is added as well.

The patch was inspired by CR https://review.openstack.org/#/c/198465/ 
and took most of its code from it as well. That's why original 
copyrights are kept.

Closes-Bug: #1471349
Change-Id: Ia77b1736dbc3d4e28ff2d2c3424e9cfcaefa5077
2015-12-17 09:58:46 +00:00
..
browsers Fix Flake8 style warnings in horizon/ 2014-07-29 20:38:49 +00:00
conf Remove legacy models.py files 2015-11-16 11:41:13 +00:00
contrib Datepicker locale support 2014-09-23 14:24:48 +00:00
forms Drop Django 1.7 support 2015-11-16 11:55:38 +00:00
hacking Eliminate mutable default arguments 2015-12-17 09:58:46 +00:00
locale Imported Translations from Zanata 2015-12-09 06:20:35 +00:00
management Update startdash/startpanel for newer Django patterns 2015-11-13 03:40:26 +00:00
static Allow specifying item to use for actions in the actions directive 2015-12-16 14:50:18 -08:00
tables remove the default arguments "[]" 2015-12-14 20:30:42 +08:00
tabs Port horizon tabs tests to Python 3 2015-09-30 18:33:43 +02:00
templates Quota pages now inherit from Bootstrap Theme 2015-12-16 23:32:08 +00:00
templatetags Horizon Dropdown now inherits from Bootstrap Theme 2015-12-03 16:07:00 +00:00
test Eliminate mutable default arguments 2015-12-17 09:58:46 +00:00
utils Horizon Dropdown now inherits from Bootstrap Theme 2015-12-03 16:07:00 +00:00
workflows py3: Replace unicode with six.text_type 2015-08-27 01:26:02 +02:00
__init__.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
base.py Remove some old (pre-1.8) Django compatibility code 2015-11-06 06:55:22 +00:00
context_processors.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
decorators.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
exceptions.py Ensure exc message is included in user_message 2015-09-07 14:32:02 +01:00
karma.conf.js Raise JS unit test coverage threshold 2015-12-14 08:17:12 -07:00
loaders.py Port password tests to Python 3 2015-09-04 12:27:04 +02:00
messages.py Uniquify horizon messages returned in a single response 2014-09-17 13:45:07 +00:00
middleware.py Removing last_activity session flag 2015-10-05 04:48:17 +00:00
site_urls.py Drop QUnit JS tests in favor of Jasmine 2015-08-27 13:09:00 +00:00
version.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
views.py Document and improve PageTitleMixin readability 2015-02-11 16:16:20 +00:00