From 23fd90ac1fa8161b52d4726c6ec6008617143853 Mon Sep 17 00:00:00 2001 From: helmutm Date: Mon, 1 Mar 2010 07:45:12 +0000 Subject: [PATCH] fix handling of client id git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3756 fd906abe-77d9-0310-91a1-e0d9ade77398 --- composer/schema/browser/schema.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/composer/schema/browser/schema.py b/composer/schema/browser/schema.py index b895392..4b8f5ad 100644 --- a/composer/schema/browser/schema.py +++ b/composer/schema/browser/schema.py @@ -73,6 +73,7 @@ class SchemaView(BaseView): def update(self): newClient = False + client = None form = self.request.form clientName = self.getClientName() if not form.get('action'): @@ -84,11 +85,11 @@ class SchemaView(BaseView): manager = self.context.getManager() if clientName: client = manager.getClients().get(clientName) - if client is None: + #if client is None: # no valid clientName - show empty form - return True + #return True #self.setClientName(clientName) # store in view and session - else: + if client is None: client = IClientFactory(manager)() # only add client to manager after validation, so we have # to keep the info about new client here