[Zope3-checkins]
SVN: Zope3/branches/srichter-blow-services/src/zope/app/component/browser/
Fixed soem site management screen problems.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Fri Jan 14 16:43:48 EST 2005
Log message for revision 28836:
Fixed soem site management screen problems.
Changed:
U Zope3/branches/srichter-blow-services/src/zope/app/component/browser/site_management.pt
U Zope3/branches/srichter-blow-services/src/zope/app/component/browser/tools.py
-=-
Modified: Zope3/branches/srichter-blow-services/src/zope/app/component/browser/site_management.pt
===================================================================
--- Zope3/branches/srichter-blow-services/src/zope/app/component/browser/site_management.pt 2005-01-14 20:51:17 UTC (rev 28835)
+++ Zope3/branches/srichter-blow-services/src/zope/app/component/browser/site_management.pt 2005-01-14 21:43:48 UTC (rev 28836)
@@ -40,7 +40,10 @@
<input type="submit" name="UNINSTALL-SUBMIT" value="Uninstall">
</form>
- <form action="." method="post" tal:repeat="tool view/getTools">
+ <form action="." method="post"
+ tal:repeat="tool view/getTools"
+ tal:attributes="action string:#${tool/name}">
+ <a name="" tal:attributes="name tool/name" />
<input type="hidden" name="activeTool" value=""
tal:attributes="value tool/name" />
<h3>
Modified: Zope3/branches/srichter-blow-services/src/zope/app/component/browser/tools.py
===================================================================
--- Zope3/branches/srichter-blow-services/src/zope/app/component/browser/tools.py 2005-01-14 20:51:17 UTC (rev 28835)
+++ Zope3/branches/srichter-blow-services/src/zope/app/component/browser/tools.py 2005-01-14 21:43:48 UTC (rev 28836)
@@ -19,10 +19,11 @@
import zope.event
from zope.app import zapi
-from zope.app.component import site, interfaces
+from zope.app.component import site, interfaces, browser
from zope.app.container.browser import adding
from zope.app.event import objectevent
+
class IToolType(zope.interface.interfaces.IInterface):
"""Interfaces implementing the tool type are considered tools."""
@@ -52,7 +53,7 @@
self.folder = folder
-class SiteManagementView(adding.Adding):
+class SiteManagementView(browser.ComponentAdding):
"""A Site Management via Tools"""
activeTool = None
@@ -130,7 +131,7 @@
def getToolInstances(self, tool):
"""Find every registered utility for a given tool configuration."""
- regManager = self.context[tool.folder].registrationManager
+ regManager = self.getSiteManagementFolder(tool).registrationManager
return [
{'name': reg.name,
'url': zapi.absoluteURL(reg.component, self.request),
More information about the Zope3-Checkins
mailing list