avoid error when no client available
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3712 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									f2b76feaf9
								
							
						
					
					
						commit
						6beafcc54a
					
				
					 1 changed files with 7 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -226,16 +226,16 @@ class CheckoutView(ServiceManagerView):
 | 
			
		|||
        return reg.service.start
 | 
			
		||||
 | 
			
		||||
    def update(self):
 | 
			
		||||
        data = self.getClientData()
 | 
			
		||||
        if data['errors']:
 | 
			
		||||
            return True
 | 
			
		||||
        form = self.request.form
 | 
			
		||||
        clientName = self.getClientName()
 | 
			
		||||
        if not form.get('action'):
 | 
			
		||||
            return True     # TODO: error, redirect to overview
 | 
			
		||||
        client = self.getClient()
 | 
			
		||||
        if client is None:
 | 
			
		||||
            return True     # TODO: error, redirect to overview
 | 
			
		||||
        data = self.getClientData()
 | 
			
		||||
        if data.get('errors'):
 | 
			
		||||
            return True
 | 
			
		||||
        form = self.request.form
 | 
			
		||||
        #clientName = self.getClientName()
 | 
			
		||||
        if not form.get('action'):
 | 
			
		||||
            return True     # TODO: error, redirect to overview
 | 
			
		||||
        regs = IClientRegistrations(client).getRegistrations()
 | 
			
		||||
        for reg in regs:
 | 
			
		||||
            stateful = IStateful(reg)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue