fix handling of client id
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3756 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
129753cdf7
commit
23fd90ac1f
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue