web/formfields.py
changeset 2549 3d8c62e5e2d4
parent 2523 1d245fbbeb90
child 2568 87f99ad0d3a8
equal deleted inserted replaced
2548:6e9d58e04ef9 2549:3d8c62e5e2d4
   476 class CompoundField(Field):
   476 class CompoundField(Field):
   477     def __init__(self, fields, *args, **kwargs):
   477     def __init__(self, fields, *args, **kwargs):
   478         super(CompoundField, self).__init__(*args, **kwargs)
   478         super(CompoundField, self).__init__(*args, **kwargs)
   479         self.fields = fields
   479         self.fields = fields
   480 
   480 
       
   481     def subfields(self, form):
       
   482         return self.fields
       
   483     
   481     def actual_fields(self, form):
   484     def actual_fields(self, form):
   482         return [self] + list(self.fields)
   485         return [self] + list(self.fields)
   483 
   486 
   484 
   487 
   485 def guess_field(eschema, rschema, role='subject', skip_meta_attr=True, **kwargs):
   488 def guess_field(eschema, rschema, role='subject', skip_meta_attr=True, **kwargs):