Skip to content
  • Richard Mansfield's avatar
    Generate view urls in get_extra_view_info · 33404332
    Richard Mansfield authored
    
    
    Bug #1006634, part 3
    
    This function is used when a set of view records needs to be augmented
    with tags and data about the view owner (user, group, or institution).
    It is useful on many pages to add the url of each view into the set of
    results, because the url can no longer be determined from the view id
    alone.
    
    To use the get_url() method, a temporary View object is created, and
    this is prepopulated with the appropriate owner or group (which we
    have already pulled from the db), so that later calls to
    get_owner_object() and get_group_object() don't need to perform any
    more queries.
    
    Change-Id: I26528ff573d057847747273cf9983fcacc70d20a
    Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
    33404332