Hide keyboard shortcuts

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 * 

3 

4def is_navStyle_active( 

5 log, 

6 thisPageName, 

7 thisPageId): 

8 """ 

9 *is navStyle active* 

10 

11 **Key Arguments** 

12 

13 - ``log`` -- logger 

14 - ``thisPageName`` -- the thisPageName of the page 

15 - ``thisPageId`` -- the Id of this page 

16  

17 

18 **Return** 

19 

20 - ``navStyle`` -- boolean, true if the navStyle should be active, i.e. the link is to the currently viewed page 

21  

22 """ 

23 log.debug('starting the ``is_navStyle_active`` function') 

24 

25 if thisPageName == thisPageId: 

26 navStyle = "active" 

27 else: 

28 navStyle = False 

29 

30 log.debug('completed the ``is_navStyle_active`` function') 

31 return navStyle