def update_attributes(self, **original_kwargs):
def update_attrs(layout_object):<EOL><INDENT>kwargs = original_kwargs.copy()<EOL>if hasattr(layout_object, '<STR_LIT>'):<EOL><INDENT>if '<STR_LIT>' in kwargs:<EOL><INDENT>if '<STR_LIT:class>' in layout_object.attrs:<EOL><INDENT>layout_object.attrs['<STR_LIT:class>'] += "<STR_LIT>" % kwargs.pop('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>layout_object.attrs['<STR_LIT:class>'] = kwargs.pop('<STR_LIT>')<EOL><DEDENT><DEDENT>layout_object.attrs.update(kwargs)<EOL><DEDENT><DEDENT>self.map(update_attrs)<EOL>
Updates attributes of every layout object pointed in `self.slice` using kwargs