equal
deleted
inserted
replaced
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"' |