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

15. roomPageURL(): Generate the URL for a room page

Given a Room instance, this function returns the absolute URL of the room page for that room. Be sure to keep this logic in sync with:

hwscan3.py
# - - -   r o o m P a g e U R L

def roomPageURL ( room ):
    '''Returns the URL for a given room's page.
    '''
    return "%s%s%s" % (BASE_URL, room.roomPrefix, HTML_SUFFIX)