diff --git a/release_dashboard/forms/__init__.py b/release_dashboard/forms/__init__.py
new file mode 100644
index 0000000..fd544a3
--- /dev/null
+++ b/release_dashboard/forms/__init__.py
@@ -0,0 +1,24 @@
+# Copyright (C) 2017 The Sipwise Team - http://sipwise.com
+
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+
+# You should have received a copy of the GNU General Public License along
+# with this program. If not, see .
+
+from django.conf import settings
+
+rd_settings = settings.RELEASE_DASHBOARD_SETTINGS
+trunk_projects = sorted(set(rd_settings['projects']) -
+ set(rd_settings['abandoned']) -
+ set(rd_settings['build_deps']))
+trunk_build_deps = sorted(set(rd_settings['build_deps']) -
+ set(rd_settings['abandoned']))
+docker_projects = rd_settings['docker_projects']
diff --git a/release_dashboard/forms.py b/release_dashboard/forms/build.py
similarity index 85%
rename from release_dashboard/forms.py
rename to release_dashboard/forms/build.py
index 5df8d6c..cdbfbd9 100644
--- a/release_dashboard/forms.py
+++ b/release_dashboard/forms/build.py
@@ -14,14 +14,8 @@
# with this program. If not, see .
from django import forms
-from django.conf import settings
-
-rd_settings = settings.RELEASE_DASHBOARD_SETTINGS
-trunk_projects = sorted(set(rd_settings['projects']) -
- set(rd_settings['abandoned']) -
- set(rd_settings['build_deps']))
-trunk_build_deps = sorted(set(rd_settings['build_deps']) -
- set(rd_settings['abandoned']))
+from . import rd_settings
+from . import trunk_projects, trunk_build_deps
class BuildForm(forms.Form):
diff --git a/release_dashboard/forms/docker.py b/release_dashboard/forms/docker.py
new file mode 100644
index 0000000..7d59257
--- /dev/null
+++ b/release_dashboard/forms/docker.py
@@ -0,0 +1,28 @@
+# Copyright (C) 2016 The Sipwise Team - http://sipwise.com
+
+# This program is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+# more details.
+
+# You should have received a copy of the GNU General Public License along
+# with this program. If not, see .
+
+from django import forms
+from . import docker_projects
+
+
+class BuildDockerForm(forms.Form):
+ common_select = forms.CharField(max_length=50)
+
+ def __init__(self, *args, **kwargs):
+ super(BuildDockerForm, self).__init__(*args, **kwargs)
+
+ for project in docker_projects:
+ self.fields['version_%s' %
+ project] = forms.CharField(max_length=15)
diff --git a/release_dashboard/models.py b/release_dashboard/models.py
index 2fdeda6..4451107 100644
--- a/release_dashboard/models.py
+++ b/release_dashboard/models.py
@@ -33,16 +33,13 @@ class Project(models.Model):
res = set()
for value in values:
- logger.debug("ref[%s]", value["ref"])
match = re.search(val_ok_filter, value["ref"])
if match:
val_ok = match.group(1)
if regex is not None:
if re.search(regex, val_ok):
res.add(val_ok)
- logger.debug("val_ok[%s] regex", val_ok)
else:
- logger.debug("val_ok[%s]", val_ok)
res.add(val_ok)
return sorted(res, reverse=True)
@@ -51,7 +48,6 @@ class Project(models.Model):
"""gerrit responds with malformed json
https://gerrit-review.googlesource.com/Documentation/rest-api.html#output
"""
- logging.debug("json[:5]: %s", text[:5])
return json.loads(text[5:])
def __str__(self):
diff --git a/release_dashboard/templates/release_dashboard/build_content.html b/release_dashboard/templates/release_dashboard/build_content.html
index 3d595ff..9181b03 100644
--- a/release_dashboard/templates/release_dashboard/build_content.html
+++ b/release_dashboard/templates/release_dashboard/build_content.html
@@ -20,6 +20,7 @@
{% endif %}
+{% if not docker %}