Next / Previous / Contents / TCC Help System / NM Tech homepage

14. linkToRoomPage(): Build a hyperlink to the room page

This function returns an et.Element that links to the room page, using the room's full name as its link text.

hwscan3.py
# - - -   l i n k T o R o o m P a g e

def linkToRoomPage ( room ):
    '''Generate a hyperlink to the page for a given room.

      [ room is a Room instance ->
          return an 'a' et.Element that links to the room page
          for room, using room.roomFull as the link text
    '''

See Section 15, “roomPageURL(): Generate the URL for a room page”.

hwscan3.py
    #-- 1 --
    return E.a ( room.roomFull, href=roomPageURL ( room ) )