def new_fn(self, before, **env): if c.render_style == "htmllite": c.link_target = env.get("target") elif "target" in env: del env["target"] if "show" in env and env['show'] == 'all': c.ignore_hide_rules = True kw = build_arg_list(fn, env) #turn before into after/reverse kw['reverse'] = False if before: kw['after'] = before kw['reverse'] = True return fn(self, **kw)
def new_fn(self, before, **env): if c.render_style == "htmllite": c.link_target = env.get("target") elif "target" in env: del env["target"] if "show" in env and env['show'] == 'all': c.ignore_hide_rules = True kw = build_arg_list(fn, env) #turn before into after/reverse kw['reverse'] = False if before: kw['after'] = before kw['reverse'] = True return fn(self, **kw)