Commit Graph

18 Commits

Author SHA1 Message Date
Roberto Rosario
a105fe46a5 Add support for updating configuration options from environment variables.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2017-06-18 03:08:03 -04:00
Roberto Rosario
ff7091cd80 Make sure the smart setting instance value cache is valid before
display its serialize version.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2017-03-20 01:44:39 -04:00
Roberto Rosario
4e7559d396 Add settings class cache invalidation method. Update common.tests.base.BaseTestCase
class to invalidate settings cache. Update tests using Django's TestCase to
BaseTestCase.
2017-01-14 00:13:35 -04:00
Roberto Rosario
8ae57a0fb6 Don't cache settings on creation but on first use. 2017-01-07 01:09:19 -04:00
Roberto Rosario
895dd9dc33 Optimize setting retrieval. Remove support for path settings checking.
Settings should be just a key, value storage.
2016-12-31 02:21:23 -04:00
Roberto Rosario
81c7a90c04 Fix message typo. 2015-10-19 00:56:11 -04:00
Roberto Rosario
a1d8f34e69 Don't cache the value of a setting. 2015-09-06 03:59:31 -04:00
Roberto Rosario
bbfd158e28 Move setting namespace initalization code to the class itself. Add method to invalidate all setting caches. Use smart setting cache invalidation for properly test advanced search pagination. 2015-09-06 02:49:27 -04:00
Roberto Rosario
4527563d89 PEP8 cleanups, specially E501 line too long. 2015-07-22 18:21:37 -04:00
Roberto Rosario
c275988c90 PEP8 cleanups, E501: 79 character long lines. 2015-07-19 03:27:41 -04:00
Roberto Rosario
68c718fe4c Allow settings to serialize lazy translations. 2015-07-17 01:41:44 -04:00
Roberto Rosario
77ab118a68 Access serialized value via property. 2015-07-17 00:59:47 -04:00
Roberto Rosario
f97bbd98bd Fix typo. 2015-07-08 04:05:10 -04:00
Roberto Rosario
6a13e2adc8 Make a clear distinction between serialized and deserialized setting values. 2015-07-08 03:31:45 -04:00
Roberto Rosario
ead8ba9a12 Don't dump the setting name to YAML. 2015-07-08 02:56:19 -04:00
Roberto Rosario
f55929403b Add setter to change the value of a setting. 2015-07-06 00:48:16 -04:00
Roberto Rosario
e4623fadcd PEP8 cleanups 2015-06-23 02:23:23 -04:00
Roberto Rosario
78198f3398 Smart settings refactor 2015-06-22 21:04:06 -04:00