forked from eea/eea.app.visualization
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #9558 - Moved data annotations to Daviz settings Control Panel
- Loading branch information
Showing
9 changed files
with
110 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
<configure xmlns="http://namespaces.zope.org/zope" | ||
xmlns:browser="http://namespaces.zope.org/browser"> | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:browser="http://namespaces.zope.org/browser"> | ||
|
||
<!-- ZMI Edit view --> | ||
<browser:page | ||
name="zmi_edit_html" | ||
for="*" | ||
class=".davizsettings.DavizSettingsZMIEditForm" | ||
permission="zope2.ViewManagementScreens" | ||
<!-- ZMI Edit view --> | ||
<browser:page | ||
name="zmi_edit_html" | ||
for="*" | ||
class=".davizsettings.DavizSettingsZMIEditForm" | ||
permission="zope2.ViewManagementScreens" | ||
/> | ||
|
||
<!-- Control panel --> | ||
<browser:page | ||
name="daviz-settings" | ||
for="Products.CMFPlone.interfaces.IPloneSiteRoot" | ||
class=".davizsettings.DavizSettingsControlPanelEditForm" | ||
permission="cmf.ManagePortal" | ||
<!-- Control panel --> | ||
<browser:page | ||
name="daviz-settings" | ||
for="Products.CMFPlone.interfaces.IPloneSiteRoot" | ||
class=".davizsettings.DavizSettingsControlPanelEditForm" | ||
permission="cmf.ManagePortal" | ||
/> | ||
|
||
<utility | ||
name="eea.app.visualizations.DataSection" | ||
factory=".controlpanel.DataSection" | ||
/> | ||
|
||
</configure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
""" Daviz Settings Section | ||
""" | ||
from zope import schema | ||
from zope.interface import implements | ||
from zope.formlib.form import FormFields | ||
from eea.app.visualization.controlpanel.interfaces import IDavizSection | ||
from eea.app.visualization.config import EEAMessageFactory as _ | ||
|
||
class DataSection(object): | ||
""" Daviz Settings Section | ||
""" | ||
implements(IDavizSection) | ||
prefix = 'data' | ||
title = 'Data Settings' | ||
|
||
def __init__(self): | ||
self.form_fields = FormFields( | ||
schema.Text( | ||
__name__='data.annotations', | ||
title=_(u"Annotations"), | ||
description=_("Data annotations - lowercase - to be " | ||
"ignored/handled as annotations when processing " | ||
"data tables. One per line " | ||
"(e.g. 'n/a', 'n.a.', ':')"), | ||
required=False), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters