Coverage for khufu/navigation/is_navStyle_active.py : 25%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# encoding: utf-8
2from . import *
4def is_navStyle_active(
5 log,
6 thisPageName,
7 thisPageId):
8 """
9 *is navStyle active*
11 **Key Arguments**
13 - ``log`` -- logger
14 - ``thisPageName`` -- the thisPageName of the page
15 - ``thisPageId`` -- the Id of this page
18 **Return**
20 - ``navStyle`` -- boolean, true if the navStyle should be active, i.e. the link is to the currently viewed page
22 """
23 log.debug('starting the ``is_navStyle_active`` function')
25 if thisPageName == thisPageId:
26 navStyle = "active"
27 else:
28 navStyle = False
30 log.debug('completed the ``is_navStyle_active`` function')
31 return navStyle