summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastermain/settings.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-07-28 11:28:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-29 13:56:49 +0100
commit10019a652f2894f8782cc9281c980edad701822a (patch)
tree6dbd5b1b35457423cdfb660a17655f49b2825a3f /bitbake/lib/toaster/toastermain/settings.py
parent7eb3e45a33e6fdd310ba47375f6a4577614cc9c4 (diff)
downloadpoky-10019a652f2894f8782cc9281c980edad701822a.tar.gz
bitbake: toaster: fix application discovery in settings.py
We fix application discovery, tuples don't have .append(). Other minor fixes. (Bitbake rev: a6f18aac3e6bb448d89a3425a2f756c6514ee595) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastermain/settings.py')
-rw-r--r--bitbake/lib/toaster/toastermain/settings.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastermain/settings.py b/bitbake/lib/toaster/toastermain/settings.py
index 09ec2bda98..a8b3e3a485 100644
--- a/bitbake/lib/toaster/toastermain/settings.py
+++ b/bitbake/lib/toaster/toastermain/settings.py
@@ -241,8 +241,6 @@ INSTALLED_APPS = (
241 'django.contrib.humanize', 241 'django.contrib.humanize',
242 'orm', 242 'orm',
243 'toastermain', 243 'toastermain',
244 'toastergui',
245 'bldviewer',
246 'south', 244 'south',
247 'bldcontrol', 245 'bldcontrol',
248) 246)
@@ -261,7 +259,7 @@ currentdir = os.path.dirname(__file__)
261for t in os.walk(os.path.dirname(currentdir)): 259for t in os.walk(os.path.dirname(currentdir)):
262 modulename = os.path.basename(t[0]) 260 modulename = os.path.basename(t[0])
263 if ("views.py" in t[2] or "models.py" in t[2]) and not modulename in INSTALLED_APPS: 261 if ("views.py" in t[2] or "models.py" in t[2]) and not modulename in INSTALLED_APPS:
264 INSTALLED_APPS.append(modulename) 262 INSTALLED_APPS = INSTALLED_APPS + (modulename,)
265 263
266# A sample logging configuration. The only tangible logging 264# A sample logging configuration. The only tangible logging
267# performed by this configuration is to send an email to 265# performed by this configuration is to send an email to