web/form.py
branchstable
changeset 2996 866a2c135c33
parent 2656 a93ae0f6c0ad
child 3023 7864fee8b4ec
child 3512 2ceaa4e40348
equal deleted inserted replaced
2995:4ef565c1d183 2996:866a2c135c33
   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 = '&nbsp;%s\n'
   167                     templstr = '&#160;%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)