<s> from featuredbase import FeaturedBase <EOL> from xierpa3 . attributes import Em , Perc , Color <EOL> from xierpa3 . descriptors . blueprint import BluePrint <EOL> class FeaturedByImageList ( FeaturedBase ) : <EOL> u"""<STR_LIT>""" <EOL> C = FeaturedBase . C <EOL> LEVELSIZE = Em ( <NUM_LIT> ) <EOL> LEVELCOLOR = Color ( '<STR_LIT>' ) <EOL> NAMECOLOR = Color ( '<STR_LIT>' ) <EOL> BLUEPRINT = BluePrint ( FeaturedBase . BLUEPRINT , <EOL> showLevel = False , doc_showLevel = u'<STR_LIT>' , <EOL> showName = False , doc_showName = u'<STR_LIT>' , <EOL> showTopic = True , doc_showTopic = u'<STR_LIT>' , <EOL> start = <NUM_LIT:0> , doc_start = u'<STR_LIT>' , <EOL> count = <NUM_LIT:3> , doc_count = u'<STR_LIT>' , <EOL> colDisplay = C . BLOCK , doc_colDisplay = u'<STR_LIT>' , <EOL> colClear = C . BOTH , doc_colClear = '<STR_LIT>' , <EOL> colMarginBottom = Em ( <NUM_LIT:0.5> ) , doc_colMarginBottom = '<STR_LIT>' , <EOL> colColor = None , doc_colColor = u'<STR_LIT>' , <EOL> colMarginRight = Perc ( <NUM_LIT> ) , doc_colMarginLeft = u'<STR_LIT>' , <EOL> colMarginLeft = <NUM_LIT:0> , <EOL> colFloat = C . LEFT , <EOL> colMinHeight = <NUM_LIT:1> , <EOL> colWidth = <NUM_LIT:4> , doc_colWidth = u'<STR_LIT>' , <EOL> itemClear = C . NONE , <EOL> itemDisplay = C . LEFT , <EOL> itemWidth = Perc ( <NUM_LIT> ) , <EOL> thumbDisplay = C . BLOCK , <EOL> genericLevel = '<STR_LIT>' , doc_genericLevel = u'<STR_LIT>' , <EOL> levelColor = Color ( LEVELCOLOR ) , doc_levelColor = u'<STR_LIT>' , <EOL> levelSize = LEVELSIZE , doc_levelSize = u'<STR_LIT>' , <EOL> levelWeight = C . BOLD , doc_levelWeight = u'<STR_LIT>' , <EOL> levelMarginTop = Em ( <NUM_LIT:0.5> ) , doc_levelMarginTop = u'<STR_LIT>' , <EOL> nameColor = Color ( NAMECOLOR ) , <EOL> nameSize = Em ( <NUM_LIT> ) , <EOL> nameLineHeight = Em ( <NUM_LIT> ) , <EOL> nameWeight = C . BOLD , <EOL> mobileDisplay = C . NONE , <EOL> mobilePaddingTop = Em ( <NUM_LIT:2> ) , mobilePaddingBottom = Em ( <NUM_LIT:0.5> ) , mobilePaddingLeft = Em ( <NUM_LIT:0.5> ) , mobilePaddingRight = Em ( <NUM_LIT:0.5> ) , <EOL> mobileMarginTop = Em ( <NUM_LIT:2> ) , mobileMarginBottom = Em ( <NUM_LIT:0.5> ) , mobileMarginLeft = Em ( <NUM_LIT:0.5> ) , mobileMarginRight = Em ( <NUM_LIT:0.5> ) , <EOL> mobileFloat = C . NONE , mobileWidth = C . AUTO , <EOL> ) <EOL> def buildFeatured ( self , b , articles ) : <EOL> s = self . style <EOL> for article in articles : <EOL> if not article . poster : <EOL> continue <EOL> b . div ( class_ = self . CLASS_FEATURED_ITEM , display = s . itemDisplay , <EOL> clear = s . itemClear , marginbottom = s . itemMarginBottom , width = s . itemWidth , <EOL> ) <EOL> b . a ( href = '<STR_LIT>' % ( self . C . PARAM_ARTICLE , article . id ) ) <EOL> if s . showLevel : <EOL> b . h5 ( color = s . levelColor , fontsize = s . levelSize , fontweight = s . levelWeight , <EOL> margintop = s . levelMarginTop ) <EOL> b . text ( article . level or s . genericLevel ) <EOL> b . text ( '<STR_LIT>' ) <EOL> b . _h5 ( ) <EOL> b . img ( class_ = self . C . CLASS_AUTOWIDTH , width = Perc ( <NUM_LIT> ) , src = article . poster ) <EOL> if s . showName : <EOL> b . h4 ( color = s . nameColor , fontsize = s . nameSize , fontweight = s . nameWeight , <EOL> lineheight = s . nameLineHeight ) <EOL> b . text ( article . name ) <EOL> b . _h4 ( ) <EOL> if s . showTopic and article . topic is not None : <EOL> b . text ( article . topic ) <EOL> b . _a ( ) <EOL> if b . e . form [ self . C . PARAM_DEBUG ] : <EOL> b . text ( ` article ` ) <EOL> b . _div ( comment = self . CLASS_FEATURED_ITEM ) </s>
