Comment 39 for bug 1006634

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/1259
Committed: http://gitorious.org/mahara/mahara/commit/33404332d1fe43867e6a3aa871cd02c162c1e8e4
Submitter: Melissa Draper (<email address hidden>)
Branch: master

commit 33404332d1fe43867e6a3aa871cd02c162c1e8e4
Author: Richard Mansfield <email address hidden>
Date: Tue May 1 18:10:54 2012 +1200

    Generate view urls in get_extra_view_info

    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: Richard Mansfield <email address hidden>