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)
downloadpoky-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 9b7387a8af..f19a4370c8 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -37,13 +37,15 @@ class ProjectManager(models.Manager):
37 name = "meta", 37 name = "meta",
38 giturl = "git://git.yoctoproject.org/poky", 38 giturl = "git://git.yoctoproject.org/poky",
39 commit = branch, 39 commit = branch,
40 dirpath = "meta") 40 dirpath = "meta",
41 optional = False)
41 42
42 ProjectLayer.objects.create(project = prj, 43 ProjectLayer.objects.create(project = prj,
43 name = "meta-yocto", 44 name = "meta-yocto",
44 giturl = "git://git.yoctoproject.org/poky", 45 giturl = "git://git.yoctoproject.org/poky",
45 commit = branch, 46 commit = branch,
46 dirpath = "meta-yocto") 47 dirpath = "meta-yocto",
48 optional = False)
47 49
48 return prj 50 return prj
49 51
@@ -116,6 +118,7 @@ class Build(models.Model):
116class ProjectTarget(models.Model): 118class ProjectTarget(models.Model):
117 project = models.ForeignKey(Project) 119 project = models.ForeignKey(Project)
118 target = models.CharField(max_length=100) 120 target = models.CharField(max_length=100)
121 task = models.CharField(max_length=100, null=True)
119 122
120@python_2_unicode_compatible 123@python_2_unicode_compatible
121class Target(models.Model): 124class Target(models.Model):
@@ -392,6 +395,7 @@ class ProjectLayer(models.Model):
392 giturl = models.CharField(max_length = 254) 395 giturl = models.CharField(max_length = 254)
393 commit = models.CharField(max_length = 254) 396 commit = models.CharField(max_length = 254)
394 dirpath = models.CharField(max_length = 254) 397 dirpath = models.CharField(max_length = 254)
398 optional = models.BooleanField(default = True)
395 399
396class Layer(models.Model): 400class Layer(models.Model):
397 name = models.CharField(max_length=100) 401 name = models.CharField(max_length=100)