From c9e9c7f0e2dc493ec8946daf0924880bb1c1f344 Mon Sep 17 00:00:00 2001 From: Rafael Reggiani Manzo Date: Mon, 1 Jun 2015 18:08:54 -0300 Subject: [PATCH] Initial crude integration with Mezuro --- colab/plugins/mezuro/__init__.py | 1 + colab/plugins/mezuro/admin.py | 3 +++ colab/plugins/mezuro/apps.py | 6 ++++++ colab/plugins/mezuro/diazo.xml | 18 ++++++++++++++++++ colab/plugins/mezuro/migrations/__init__.py | 0 colab/plugins/mezuro/models.py | 3 +++ colab/plugins/mezuro/templates/proxy/mezuro.html | 1 + colab/plugins/mezuro/tests.py | 3 +++ colab/plugins/mezuro/urls.py | 7 +++++++ colab/plugins/mezuro/views.py | 5 +++++ 10 files changed, 47 insertions(+), 0 deletions(-) create mode 100644 colab/plugins/mezuro/__init__.py create mode 100644 colab/plugins/mezuro/admin.py create mode 100644 colab/plugins/mezuro/apps.py create mode 100644 colab/plugins/mezuro/diazo.xml create mode 100644 colab/plugins/mezuro/migrations/__init__.py create mode 100644 colab/plugins/mezuro/models.py create mode 100644 colab/plugins/mezuro/templates/proxy/mezuro.html create mode 100644 colab/plugins/mezuro/tests.py create mode 100644 colab/plugins/mezuro/urls.py create mode 100644 colab/plugins/mezuro/views.py diff --git a/colab/plugins/mezuro/__init__.py b/colab/plugins/mezuro/__init__.py new file mode 100644 index 0000000..b937315 --- /dev/null +++ b/colab/plugins/mezuro/__init__.py @@ -0,0 +1 @@ +default_app_config = 'colab.plugins.mezuro.apps.ProxyMezuroAppConfig' \ No newline at end of file diff --git a/colab/plugins/mezuro/admin.py b/colab/plugins/mezuro/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/colab/plugins/mezuro/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/colab/plugins/mezuro/apps.py b/colab/plugins/mezuro/apps.py new file mode 100644 index 0000000..c4c5436 --- /dev/null +++ b/colab/plugins/mezuro/apps.py @@ -0,0 +1,6 @@ +from django.utils.translation import ugettext_lazy as _ +from ..utils.apps import ColabProxiedAppConfig + +class ProxyMezuroAppConfig(ColabProxiedAppConfig): + name = 'colab.plugins.mezuro' + verbose_name = 'Mezuro Proxy' diff --git a/colab/plugins/mezuro/diazo.xml b/colab/plugins/mezuro/diazo.xml new file mode 100644 index 0000000..34ffbbe --- /dev/null +++ b/colab/plugins/mezuro/diazo.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + diff --git a/colab/plugins/mezuro/migrations/__init__.py b/colab/plugins/mezuro/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/colab/plugins/mezuro/migrations/__init__.py diff --git a/colab/plugins/mezuro/models.py b/colab/plugins/mezuro/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/colab/plugins/mezuro/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/colab/plugins/mezuro/templates/proxy/mezuro.html b/colab/plugins/mezuro/templates/proxy/mezuro.html new file mode 100644 index 0000000..21f5da2 --- /dev/null +++ b/colab/plugins/mezuro/templates/proxy/mezuro.html @@ -0,0 +1 @@ +{% extends 'base.html' %} diff --git a/colab/plugins/mezuro/tests.py b/colab/plugins/mezuro/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/colab/plugins/mezuro/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/colab/plugins/mezuro/urls.py b/colab/plugins/mezuro/urls.py new file mode 100644 index 0000000..c203869 --- /dev/null +++ b/colab/plugins/mezuro/urls.py @@ -0,0 +1,7 @@ +from django.conf.urls import patterns, url +from .views import MezuroProxyView + +urlpatterns = patterns('', + # Gitlab URLs + url(r'^(?P.*)$', MezuroProxyView.as_view(), name='mezuro'), +) diff --git a/colab/plugins/mezuro/views.py b/colab/plugins/mezuro/views.py new file mode 100644 index 0000000..5c5570d --- /dev/null +++ b/colab/plugins/mezuro/views.py @@ -0,0 +1,5 @@ +from ..utils.views import ColabProxyView + +class MezuroProxyView(ColabProxyView): + app_label = 'mezuro' + diazo_theme_template = 'proxy/mezuro.html' -- libgit2 0.21.2