def class_(self, request, tag): class_ = util.css_class(self.child) if self.child.parent is not self.ob: class_ = 'base' + class_ return class_
def heading(self): return tags.h1(class_=util.css_class(self.ob))(tags.code( self.namespace(self.ob)))
def class_(self, request: object, tag: Tag) -> "Flattenable": class_ = util.css_class(self.ob) if self.ob.parent is not self.ob: class_ = 'base' + class_ return class_