From 809a06d3abfd55c0fb6085fe31396697c63d6893 Mon Sep 17 00:00:00 2001 From: helmutm Date: Fri, 7 Sep 2007 17:35:28 +0000 Subject: [PATCH] bug fix: link to DataTemplate if no RegistrationTemplate present git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2018 fd906abe-77d9-0310-91a1-e0d9ade77398 --- organize/browser/service.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/organize/browser/service.py b/organize/browser/service.py index d39b88f..6062dc5 100644 --- a/organize/browser/service.py +++ b/organize/browser/service.py @@ -86,11 +86,14 @@ class ServiceManagerView(BaseView): """ Find a registration template that provides the registration for the service given. """ + first = None for tpl in self.context.getClientSchemas(): + if first is None: + first = tpl if IRegistrationTemplate.providedBy(tpl): # TODO: check that service is really provided by this template return tpl - return None + return first def overview(self, includeCategories=None): result = []