Example #1
0
 def _default_thing_wrapper(thing):
     w = Wrapped(thing)
     style = params.get('style', c.render_style)
     if isinstance(thing, Link):
         if thing.promoted is not None:
             w.render_class = PromotedLink
         elif style == 'htmllite':
             w.score_fmt = Score.safepoints
         w.should_incr_counts = style != 'htmllite'
     return w
Example #2
0
 def _default_thing_wrapper(thing):
     w = Wrapped(thing)
     style = params.get('style', c.render_style)
     if isinstance(thing, Link):
         if thing.promoted is not None:
             w.render_class = PromotedLink
         elif style == 'htmllite':
             w.score_fmt = Score.safepoints
         w.should_incr_counts = style != 'htmllite'
     return w
Example #3
0
 def _default_thing_wrapper(thing):
     w = Wrapped(thing)
     style = params.get("style", c.render_style)
     if isinstance(thing, Link):
         if thing.promoted is not None:
             w.render_class = PromotedLink
             w.rowstyle = "promoted link"
         elif style == "htmllite":
             w.score_fmt = Score.points
         w.should_incr_counts = style != "htmllite"
     return w