# HG changeset patch # User Adrien Di Mascio # Date 1265989737 -3600 # Node ID 38f0562b744b56e6d44b9c18a1ac08d63e45483f # Parent 23e0632df61522ae7db9de9dd240e38d668c3ca9 [uicfg] allow autoform_section's formtype parameter to be a tuple Typical usage is: afs.tag_attribute(('X', 'y'), formtype=('main', 'muledit'), section='attributes') diff -r 23e0632df615 -r 38f0562b744b web/uicfg.py --- a/web/uicfg.py Fri Feb 12 13:35:12 2010 +0100 +++ b/web/uicfg.py Fri Feb 12 16:48:57 2010 +0100 @@ -312,6 +312,10 @@ formsections.add('%s_%s' % (formtype, section)) def tag_relation(self, key, formtype, section=None): + if isinstance(formtype, tuple): + for ftype in formtype: + self.tag_relation(key, ftype, section) + return if section is None: tag = formtype for formtype, section in self.bw_tag_map[tag].iteritems():