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 = []