summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r--bitbake/lib/toaster/orm/models.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 1daec9c25a..34ea28c270 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -1287,6 +1287,14 @@ class LayerSource(object):
1287 (TYPE_BUILD, "build"), 1287 (TYPE_BUILD, "build"),
1288 ) 1288 )
1289 1289
1290 def types_dict():
1291 """ Turn the TYPES enums into a simple dictionary """
1292 dictionary = {}
1293 for key in LayerSource.__dict__:
1294 if "TYPE" in key:
1295 dictionary[key] = getattr(LayerSource, key)
1296 return dictionary
1297
1290 1298
1291class Layer(models.Model): 1299class Layer(models.Model):
1292 1300