Version 0.1.0 0.1.0
authorThierry Florac <thierry.florac@onf.fr>
Wed, 17 Jun 2015 09:58:53 +0200
changeset 11 2746eb7b3437
parent 10 1caa81990b67
child 12 254b16bfecaa
Version 0.1.0
buildout.cfg
src/pyams_scheduler.egg-info/SOURCES.txt
src/pyams_scheduler/zmi/scheduler.py
--- a/buildout.cfg	Wed May 20 12:27:05 2015 +0200
+++ b/buildout.cfg	Wed Jun 17 09:58:53 2015 +0200
@@ -18,7 +18,10 @@
 
 src = src
 develop = .
+          ../pyams_catalog
+          ../pyams_file
           ../pyams_form
+          ../pyams_i18n
           ../pyams_mail
           ../pyams_pagelet
           ../pyams_skin
--- a/src/pyams_scheduler.egg-info/SOURCES.txt	Wed May 20 12:27:05 2015 +0200
+++ b/src/pyams_scheduler.egg-info/SOURCES.txt	Wed Jun 17 09:58:53 2015 +0200
@@ -3,7 +3,6 @@
 docs/HISTORY.txt
 docs/README.txt
 src/pyams_scheduler/__init__.py
-src/pyams_scheduler/configure.zcml
 src/pyams_scheduler/include.py
 src/pyams_scheduler/process.py
 src/pyams_scheduler/scheduler.py
@@ -26,6 +25,9 @@
 src/pyams_scheduler/interfaces/ssh.py
 src/pyams_scheduler/interfaces/url.py
 src/pyams_scheduler/interfaces/zodb.py
+src/pyams_scheduler/locales/pyams_scheduler.pot
+src/pyams_scheduler/locales/fr/LC_MESSAGES/pyams_scheduler.mo
+src/pyams_scheduler/locales/fr/LC_MESSAGES/pyams_scheduler.po
 src/pyams_scheduler/tests/__init__.py
 src/pyams_scheduler/tests/test_utilsdocs.py
 src/pyams_scheduler/tests/test_utilsdocstrings.py
--- a/src/pyams_scheduler/zmi/scheduler.py	Wed May 20 12:27:05 2015 +0200
+++ b/src/pyams_scheduler/zmi/scheduler.py	Wed Jun 17 09:58:53 2015 +0200
@@ -9,10 +9,6 @@
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
 #
-from pyams_form.interfaces.form import IWidgetsSuffixViewletsManager
-from pyams_template.template import template_config
-from pyams_utils.date import format_datetime
-from pyams_utils.interfaces.zeo import IZEOConnection
 
 __docformat__ = 'restructuredtext'
 
@@ -24,6 +20,7 @@
 from datetime import datetime
 
 # import interfaces
+from pyams_form.interfaces.form import IWidgetsSuffixViewletsManager
 from pyams_scheduler.interfaces import IScheduler, SCHEDULER_HANDLER_KEY
 from pyams_scheduler.zmi.interfaces import ISchedulerMenu
 from pyams_skin.interfaces import IInnerPage, IPageHeader
@@ -39,10 +36,13 @@
 from pyams_form.form import AJAXEditForm
 from pyams_pagelet.pagelet import pagelet_config
 from pyams_skin.container import ContainerView
+from pyams_skin.page import DefaultPageHeaderAdapter
 from pyams_skin.table import DefaultElementEditorAdapter, BaseTable, I18nColumn, TrashColumn, ActionColumn
 from pyams_skin.viewlet.menu import MenuItem
+from pyams_template.template import template_config
 from pyams_utils.adapter import adapter_config, ContextRequestViewAdapter
-from pyams_utils.registry import query_utility, get_utility
+from pyams_utils.date import format_datetime
+from pyams_utils.registry import query_utility
 from pyams_utils.traversing import get_parent
 from pyams_utils.url import absolute_url
 from pyams_viewlet.manager import viewletmanager_config
@@ -225,12 +225,12 @@
 
 
 @adapter_config(context=(ISite, IAdminLayer, SchedulerTasksView), provides=IPageHeader)
-class SchedulerTasksHeaderAdapter(ContextRequestViewAdapter):
+class SchedulerTasksHeaderAdapter(DefaultPageHeaderAdapter):
     """Scheduler tasks header adapter"""
 
     icon_class = 'fa fa-fw fa-clock-o'
-    title = _("Tasks scheduler")
-    subtitle = _("Scheduled tasks")
+    title = _("Control panel")
+    subtitle = _("Tasks scheduler")
 
 
 @viewlet_config(name='scheduler.properties.menu', context=ISite, layer=IAdminLayer,