Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A pluggable control panel.

Project Description
Project Description
===================

This product is a pluggable control panel.

The idea behind it is the following.

- You want a control panel for your settings.
- You don't want to make new control panels all the time.
- You want all your settings to be in the same control panel
- You want tabs in your control panel.



How to use it
--------------

- install medialog.controlpanel (or add it as a dependecy in your product)
- then do the following in your own product

In a py-file (interfaces.py maybe):

------------------------------------

from z3c.form import interfaces
from zope import schema
#from zope.interface import Interface
from zope.interface import alsoProvides
from plone.directives import form
from medialog.controlpanel.interfaces import IMedialogControlpanelSettingsProvider

from zope.i18nmessageid import MessageFactory

_ = MessageFactory('your.product')

class IMyProductSettings(form.Schema):
"""Adds settings to medialog.controlpanel
"""

form.fieldset(
'myproductname',
label=_(u'name of My Settings'),
fields=[
'my_field',
],
)

my_field = schema.TextLine(
title=_(u"label_my_field", default=u"My Field"),
description=_(u"help_my_field",
default=u"My description")
)

alsoProvides(IMyProductSettings, IMedialogControlpanelSettingsProvider)

---------------------------------------------------------------------------

In your products profile:

Add a registry.xml field with the following content:

---------------------------------------------------------------------------

<?xml version="1.0"?>

<registry>
<records interface="my.product.interfaces.IMyProductSettings">
<value key="my_field"></value>
</records>
</registry>


Of course, change MyProduct / my_field to your own names.

Author:
*******
Espen Moe-Nilssen [espenmn]

Some of the code is stolen (shamelessly) from Bluedynamics and Nathan van Gheem.

PS: zedr also wanted to be mentioned.
Changelog
=========

1.1.2 (03.30.2016)
-------------------

- Renamed the control panel
- Removed Pastescript dependency



1.1 (07.23.2015)
-------------------

- Added icon



1.0.1 (05.09.2013)
-------------------

- Initial release
Release History

Release History

This version
History Node

1.1.3

History Node

1.1.2

History Node

1.1.1

History Node

1.1

History Node

1.0.4

History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
medialog.controlpanel-1.1.3.tar.gz (15.8 kB) Copy SHA256 Checksum SHA256 Source Mar 30, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting