web/uicfg.py
branchstable
changeset 4564 38f0562b744b
parent 4521 32402dd2504d
child 4565 9f991ee66e19
equal deleted inserted replaced
4560:23e0632df615 4564:38f0562b744b
   310         # recompute formsections and set it to avoid recomputing
   310         # recompute formsections and set it to avoid recomputing
   311         for formtype, section in sectdict.iteritems():
   311         for formtype, section in sectdict.iteritems():
   312             formsections.add('%s_%s' % (formtype, section))
   312             formsections.add('%s_%s' % (formtype, section))
   313 
   313 
   314     def tag_relation(self, key, formtype, section=None):
   314     def tag_relation(self, key, formtype, section=None):
       
   315         if isinstance(formtype, tuple):
       
   316             for ftype in formtype:
       
   317                 self.tag_relation(key, ftype, section)
       
   318             return
   315         if section is None:
   319         if section is None:
   316             tag = formtype
   320             tag = formtype
   317             for formtype, section in self.bw_tag_map[tag].iteritems():
   321             for formtype, section in self.bw_tag_map[tag].iteritems():
   318                 warn('[3.6] add tag to autoform section by specifying form '
   322                 warn('[3.6] add tag to autoform section by specifying form '
   319                      'type and tag. Replace %s by formtype="%s", section="%s"'
   323                      'type and tag. Replace %s by formtype="%s", section="%s"'