horizon/horizon/utils
woodm1979 28e5874eb7 Cleaned up dict.update(single elem dict) code
There's several places in the code where this type of thing exists:
    form_data.update({'vpnservice_id': vpnservice.id})
better would be this:
    form_data['vpnservice_id'] = vpnservice.id
This type of thing bothers me, so I'm going to clean it up.

Also fixed the two cases of:
    if <some_string>.find(<some_other_string>) != -1:
which should clearly use the "in" operator instead.

Change-Id: Ic72a5b0a17c211f3949edc69732c1101c24590ec
Closes-Bug: 1339849
2014-07-14 09:05:51 -06:00
..
__init__.py Unifies the project packaging into one set of modules. 2012-02-29 00:20:13 -08:00
csvbase.py Refactor CSV generation code to utils 2014-03-03 10:05:23 -07:00
filters.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
functions.py ValueError when cookie pagesize is empty string 2014-05-07 11:00:09 -06:00
html.py Cleaned up dict.update(single elem dict) code 2014-07-14 09:05:51 -06:00
memoized.py replace dict.iteritems() with six.iteritems(dict) 2014-05-26 12:06:58 +02:00
secret_key.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
validators.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00