web/formfields.py
branchstable
changeset 5038 90493551b1eb
parent 5030 5238d9a8dfee
child 5057 d1bd50ae0edd
equal deleted inserted replaced
5037:7778a2bbdf9d 5038:90493551b1eb
   379 
   379 
   380     def process_posted(self, form):
   380     def process_posted(self, form):
   381         for field in self.actual_fields(form):
   381         for field in self.actual_fields(form):
   382             if field is self:
   382             if field is self:
   383                 try:
   383                 try:
   384                     yield field, field.process_form_value(form)
   384                     value = field.process_form_value(form)
       
   385                     if value is None and field.required:
       
   386                         raise ProcessFormError(form._cw._("required field"))
       
   387                     yield field, value
   385                 except UnmodifiedField:
   388                 except UnmodifiedField:
   386                     continue
   389                     continue
   387             else:
   390             else:
   388                 # recursive function: we might have compound fields
   391                 # recursive function: we might have compound fields
   389                 # of compound fields (of compound fields of ...)
   392                 # of compound fields (of compound fields of ...)