summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm/models.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-06-30 18:33:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-23 20:06:58 +0100
commit6e71c276b582135228419d95174b7e7784d496b2 (patch)
treeb9facea21ed3a3af49c80c01275ee1d0b64f8075 /bitbake/lib/toaster/orm/models.py
parent8a3789a7b11565aa2ceae0b79f93edb0d353173b (diff)
downloadast2050-yocto-poky-6e71c276b582135228419d95174b7e7784d496b2.zip
ast2050-yocto-poky-6e71c276b582135228419d95174b7e7784d496b2.tar.gz
bitbake: toaster: add project main edit page
This is the first commit on the project main edit page. At this point we have: * the default settings for a newly created project * the ability to add targets * the ability to trigger a build command, and have the build executed Project layers now have an optional field, allowing for removal. Default meta, meta-yocto and meta-yocto-bsp layers cannot be optional. We add XHR calls for interactivity in the main page. (Bitbake rev: 4e438854120cbd10319df1b571ec93e334002325) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r--bitbake/lib/toaster/orm/models.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 9b7387a..f19a437 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -37,13 +37,15 @@ class ProjectManager(models.Manager):
name = "meta",
giturl = "git://git.yoctoproject.org/poky",
commit = branch,
- dirpath = "meta")
+ dirpath = "meta",
+ optional = False)
ProjectLayer.objects.create(project = prj,
name = "meta-yocto",
giturl = "git://git.yoctoproject.org/poky",
commit = branch,
- dirpath = "meta-yocto")
+ dirpath = "meta-yocto",
+ optional = False)
return prj
@@ -116,6 +118,7 @@ class Build(models.Model):
class ProjectTarget(models.Model):
project = models.ForeignKey(Project)
target = models.CharField(max_length=100)
+ task = models.CharField(max_length=100, null=True)
@python_2_unicode_compatible
class Target(models.Model):
@@ -392,6 +395,7 @@ class ProjectLayer(models.Model):
giturl = models.CharField(max_length = 254)
commit = models.CharField(max_length = 254)
dirpath = models.CharField(max_length = 254)
+ optional = models.BooleanField(default = True)
class Layer(models.Model):
name = models.CharField(max_length=100)
OpenPOWER on IntegriCloud