[Checkins] SVN: GenericSetup/branches/1.3/ - added ZMI tab version
of components_xmlconfig.html
Yvo Schubbe
y.2007- at wcm-solutions.de
Thu Aug 2 14:05:57 EDT 2007
Log message for revision 78545:
- added ZMI tab version of components_xmlconfig.html
Changed:
U GenericSetup/branches/1.3/CHANGES.txt
A GenericSetup/branches/1.3/browser/components.pt
U GenericSetup/branches/1.3/browser/components.py
U GenericSetup/branches/1.3/browser/configure.zcml
-=-
Modified: GenericSetup/branches/1.3/CHANGES.txt
===================================================================
--- GenericSetup/branches/1.3/CHANGES.txt 2007-08-02 15:13:04 UTC (rev 78544)
+++ GenericSetup/branches/1.3/CHANGES.txt 2007-08-02 18:05:56 UTC (rev 78545)
@@ -9,7 +9,8 @@
deprecated.
- components: Added 'components_xmlconfig.html' form.
- This view allows to inspect and edit component registrations.
+ This view allows to inspect and edit component registrations. It is also
+ as ZMI tab 'manage_components' available.
GenericSetup 1.3 (2007/07/26)
Added: GenericSetup/branches/1.3/browser/components.pt
===================================================================
--- GenericSetup/branches/1.3/browser/components.pt (rev 0)
+++ GenericSetup/branches/1.3/browser/components.pt 2007-08-02 18:05:56 UTC (rev 78545)
@@ -0,0 +1,17 @@
+<h1 tal:replace="structure context/manage_page_header">PAGE HEADER</h1>
+<h2 tal:replace="structure context/manage_tabs">TABS</h2>
+
+<!-- not valid in the body, but works -->
+<style type="text/css">
+ td.label {
+ color: #333333;
+ font-family: Verdana,Helvetica,sans-serif;
+ font-size: 10pt;
+ font-weight: bold;
+ vertical-align: top;
+ }
+</style>
+
+<br />
+<metal:macro metal:use-macro="view/base_template/macros/form" />
+<h1 tal:replace="structure context/manage_page_footer">PAGE FOOTER</h1>
Property changes on: GenericSetup/branches/1.3/browser/components.pt
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: GenericSetup/branches/1.3/browser/components.py
===================================================================
--- GenericSetup/branches/1.3/browser/components.py 2007-08-02 15:13:04 UTC (rev 78544)
+++ GenericSetup/branches/1.3/browser/components.py 2007-08-02 18:05:56 UTC (rev 78545)
@@ -15,6 +15,7 @@
$Id$
"""
+from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from Products.Five.component.interfaces import IObjectManagerSite
from Products.Five.formlib.formbase import PageEditForm
from zope.component import adapts
@@ -69,3 +70,15 @@
super(ComponentsSetupView,
self).setUpWidgets(ignore_request=ignore_request)
self.widgets['body'].height = 24
+
+
+class ComponentsSetupTab(ComponentsSetupView):
+
+ """Components setup ZMI tab for IObjectManagerSite.
+ """
+
+ base_template = PageEditForm.template
+
+ template = ViewPageTemplateFile('components.pt')
+
+ label = None
Modified: GenericSetup/branches/1.3/browser/configure.zcml
===================================================================
--- GenericSetup/branches/1.3/browser/configure.zcml 2007-08-02 15:13:04 UTC (rev 78544)
+++ GenericSetup/branches/1.3/browser/configure.zcml 2007-08-02 18:05:56 UTC (rev 78545)
@@ -11,4 +11,11 @@
permission="five.ManageSite"
/>
+ <browser:page
+ for="Products.Five.component.interfaces.IObjectManagerSite"
+ name="manage_components"
+ class=".components.ComponentsSetupTab"
+ permission="five.ManageSite"
+ />
+
</configure>
More information about the Checkins
mailing list