configglue team mailing list archive
-
configglue team
-
Mailing list archive
-
Message #00378
[Merge] lp:~ricardokirkner/configglue/contrib-schemas into lp:configglue
Ricardo Kirkner has proposed merging lp:~ricardokirkner/configglue/contrib-schemas into lp:configglue.
Requested reviews:
Configglue developers (configglue)
For more details, see:
https://code.launchpad.net/~ricardokirkner/configglue/contrib-schemas/+merge/101928
Provide contributed schemas for applications not providing their own schema.
This allows reuse and reduces duplication.
--
https://code.launchpad.net/~ricardokirkner/configglue/contrib-schemas/+merge/101928
Your team Configglue developers is requested to review the proposed merge of lp:~ricardokirkner/configglue/contrib-schemas into lp:configglue.
=== added directory 'configglue/contrib'
=== added file 'configglue/contrib/__init__.py'
--- configglue/contrib/__init__.py 1970-01-01 00:00:00 +0000
+++ configglue/contrib/__init__.py 2012-04-13 16:20:40 +0000
@@ -0,0 +1,16 @@
+###############################################################################
+#
+# configglue -- glue for your apps' configuration
+#
+# A library for simple, DRY configuration of applications
+#
+# (C) 2009--2012 by Canonical Ltd.
+# by John R. Lenton <john.lenton@xxxxxxxxxxxxx>
+# and Ricardo Kirkner <ricardo.kirkner@xxxxxxxxxxxxx>
+#
+# Released under the BSD License (see the file LICENSE)
+#
+# For bug reports, support, and new releases: http://launchpad.net/configglue
+#
+###############################################################################
+
=== added directory 'configglue/contrib/schema'
=== added file 'configglue/contrib/schema/__init__.py'
--- configglue/contrib/schema/__init__.py 1970-01-01 00:00:00 +0000
+++ configglue/contrib/schema/__init__.py 2012-04-13 16:20:40 +0000
@@ -0,0 +1,36 @@
+###############################################################################
+#
+# configglue -- glue for your apps' configuration
+#
+# A library for simple, DRY configuration of applications
+#
+# (C) 2009--2012 by Canonical Ltd.
+# by John R. Lenton <john.lenton@xxxxxxxxxxxxx>
+# and Ricardo Kirkner <ricardo.kirkner@xxxxxxxxxxxxx>
+#
+# Released under the BSD License (see the file LICENSE)
+#
+# For bug reports, support, and new releases: http://launchpad.net/configglue
+#
+###############################################################################
+
+from .devserver import DevServerSchema
+from .django_jenkins import DjangoJenkinsSchema
+from .nexus import NexusSchema
+from .openid import OpenIdSchema
+from .preflight import PreflightSchema
+from .saml2idp import Saml2IdpSchema
+from .sentry import SentrySchema
+from .statsd import StatsdSchema
+
+
+__all__ = [
+ 'DevServerSchema',
+ 'DjangoJenkinsSchema',
+ 'NexusSchema',
+ 'OpenIdSchema',
+ 'PreflightSchema',
+ 'Saml2IdpSchema',
+ 'SentrySchema',
+ 'StatsdSchema',
+ ]
=== added file 'configglue/contrib/schema/devserver.py'
--- configglue/contrib/schema/devserver.py 1970-01-01 00:00:00 +0000
+++ configglue/contrib/schema/devserver.py 2012-04-13 16:20:40 +0000
@@ -0,0 +1,24 @@
+from configglue.schema import (
+ BoolOption,
+ IntOption,
+ ListOption,
+ Section,
+ Schema,
+ StringOption,
+ )
+
+
+class DevServerSchema(Schema):
+ class devserver(Section):
+ devserver_ignored_prefixes = ListOption(
+ item=StringOption(),
+ help="List of url prefixes which will be ignored")
+ devserver_modules = ListOption(
+ item=StringOption(),
+ help="List of devserver modules to enable")
+ devserver_default_addr = StringOption(default="127.0.0.1")
+ devserver_default_port = StringOption(default="8000")
+ devserver_truncate_sql = BoolOption(default=True)
+ devserver_ajax_content_length = IntOption(default=300)
+ devserver_auto_profile = BoolOption(default=False)
+
=== added file 'configglue/contrib/schema/django_jenkins.py'
--- configglue/contrib/schema/django_jenkins.py 1970-01-01 00:00:00 +0000
+++ configglue/contrib/schema/django_jenkins.py 2012-04-13 16:20:40 +0000
@@ -0,0 +1,20 @@
+from configglue.schema import (
+ ListOption,
+ Schema,
+ Section,
+ StringOption,
+ TupleOption,
+ )
+
+
+class DjangoJenkinsSchema(Schema):
+ class django_jenkins(Section):
+ project_apps = ListOption()
+ jenkins_tasks = TupleOption(
+ default=(
+ 'django_jenkins.tasks.run_pylint',
+ 'django_jenkins.tasks.with_coverage',
+ 'django_jenkins.tasks.django_tests',
+ ))
+ jenkins_test_runner = StringOption()
+
=== added file 'configglue/contrib/schema/nexus.py'
--- configglue/contrib/schema/nexus.py 1970-01-01 00:00:00 +0000
+++ configglue/contrib/schema/nexus.py 2012-04-13 16:20:40 +0000
@@ -0,0 +1,7 @@
+from configglue.schema import BoolOption, Schema, Section, StringOption
+
+
+class NexusSchema(Schema):
+ class nexus(Section):
+ nexus_media_prefix = StringOption(default='/nexus/media/')
+ nexus_use_django_media_url = BoolOption()
=== added file 'configglue/contrib/schema/openid.py'
--- configglue/contrib/schema/openid.py 1970-01-01 00:00:00 +0000
+++ configglue/contrib/schema/openid.py 2012-04-13 16:20:40 +0000
@@ -0,0 +1,23 @@
+from configglue.schema import (
+ BoolOption,
+ DictOption,
+ IntOption,
+ ListOption,
+ Schema,
+ Section,
+ StringOption,
+ TupleOption,
+ )
+
+
+class OpenIdSchema(Schema):
+ class openid(Section):
+ pre_authorization_validity = IntOption()
+ openid_preauthorization_acl = ListOption(
+ item=TupleOption(length=2))
+ openid_create_users = BoolOption()
+ openid_launchpad_teams_mapping = DictOption()
+ openid_sso_server_url = StringOption()
+ openid_set_language_from_sreg = BoolOption()
+ openid_sreg_extra_fields = ListOption(item=StringOption())
+ openid_launchpad_staff_teams = ListOption(item=StringOption())
=== added file 'configglue/contrib/schema/preflight.py'
--- configglue/contrib/schema/preflight.py 1970-01-01 00:00:00 +0000
+++ configglue/contrib/schema/preflight.py 2012-04-13 16:20:40 +0000
@@ -0,0 +1,6 @@
+from configglue.schema import Section, Schema, StringOption
+
+
+class PreflightSchema(Schema):
+ class preflight(Section):
+ preflight_base_template = StringOption()
=== added file 'configglue/contrib/schema/saml2idp.py'
--- configglue/contrib/schema/saml2idp.py 1970-01-01 00:00:00 +0000
+++ configglue/contrib/schema/saml2idp.py 2012-04-13 16:20:40 +0000
@@ -0,0 +1,23 @@
+from configglue.schema import (
+ BoolOption,
+ ListOption,
+ Section,
+ Schema,
+ StringOption,
+ )
+
+
+class Saml2IdpSchema(Schema):
+ class saml2(Section):
+ saml2idp_autosubmit = BoolOption(default=True)
+ saml2idp_issuer = StringOption()
+ saml2idp_certificate_file = StringOption()
+ saml2idp_private_key_file = StringOption()
+ saml2idp_signing = BoolOption(default=True)
+ saml2idp_valid_acs = ListOption(
+ item=StringOption(),
+ help="List of ACS URLs accepted by /+saml login")
+ saml2idp_processor_classes = ListOption(
+ item=StringOption(),
+ help="List of SAML 2.0 AuthnRequest processors")
+
=== added file 'configglue/contrib/schema/sentry.py'
--- configglue/contrib/schema/sentry.py 1970-01-01 00:00:00 +0000
+++ configglue/contrib/schema/sentry.py 2012-04-13 16:20:40 +0000
@@ -0,0 +1,6 @@
+from configglue.schema import Schema, Section, StringOption
+
+
+class SentrySchema(Schema):
+ class sentry(Section):
+ sentry_dsn = StringOption()
=== added file 'configglue/contrib/schema/statsd.py'
--- configglue/contrib/schema/statsd.py 1970-01-01 00:00:00 +0000
+++ configglue/contrib/schema/statsd.py 2012-04-13 16:20:40 +0000
@@ -0,0 +1,7 @@
+from configglue.schema import IntOption, Schema, Section, StringOption
+
+
+class StatsdSchema(Schema):
+ class statsd(Section):
+ statsd_host = StringOption(default='localhost')
+ statsd_port = IntOption(default=8125)
Follow ups
-
[Merge] lp:~ricardokirkner/configglue/contrib-schemas into lp:configglue
From: noreply, 2012-04-13
-
[Merge] lp:~ricardokirkner/configglue/contrib-schemas into lp:configglue
From: Ubuntu One Auto Pilot, 2012-04-13
-
Re: [Merge] lp:~ricardokirkner/configglue/contrib-schemas into lp:configglue
From: Ubuntu One Auto Pilot, 2012-04-13
-
[Merge] lp:~ricardokirkner/configglue/contrib-schemas into lp:configglue
From: Ricardo Kirkner, 2012-04-13
-
Re: [Merge] lp:~ricardokirkner/configglue/contrib-schemas into lp:configglue
From: Ricardo Kirkner, 2012-04-13
-
[Merge] lp:~ricardokirkner/configglue/contrib-schemas into lp:configglue
From: Ubuntu One Auto Pilot, 2012-04-13
-
Re: [Merge] lp:~ricardokirkner/configglue/contrib-schemas into lp:configglue
From: Ubuntu One Auto Pilot, 2012-04-13
-
[Merge] lp:~ricardokirkner/configglue/contrib-schemas into lp:configglue
From: Ricardo Kirkner, 2012-04-13
-
Re: [Merge] lp:~ricardokirkner/configglue/contrib-schemas into lp:configglue
From: Simon Davy, 2012-04-13
-
[Merge] lp:~ricardokirkner/configglue/contrib-schemas into lp:configglue
From: Ricardo Kirkner, 2012-04-13