equal
deleted
inserted
replaced
162 if not field in displayed) |
162 if not field in displayed) |
163 if errors: |
163 if errors: |
164 if len(errors) > 1: |
164 if len(errors) > 1: |
165 templstr = '<li>%s</li>\n' |
165 templstr = '<li>%s</li>\n' |
166 else: |
166 else: |
167 templstr = ' %s\n' |
167 templstr = ' %s\n' |
168 for field, err in errors: |
168 for field, err in errors: |
169 if field is None: |
169 if field is None: |
170 errormsg += templstr % err |
170 errormsg += templstr % err |
171 else: |
171 else: |
172 errormsg += templstr % '%s: %s' % (self.req._(field), err) |
172 errormsg += templstr % '%s: %s' % (self.req._(field), err) |