Exemple #1
0
    def admin_link(self):
        """Return a link to the resource admin page.

        Returns:
            str. link to the resource's admin page.
        """
        return linked_unicode(self.leaf)
Exemple #2
0
    def children_link(self):
        """Return links to the sub test's admin page.

        Returns:
            str. links to the sub test's admin page.
        """
        return ', '.join(
            linked_unicode(sub_test) for sub_test in self.get_sub_tests_data())
Exemple #3
0
    def parent_link(self):
        """Return a link to the test's parent's admin page.

        Returns:
            str. link to the test's parent's admin page.
        """
        if self.parent is None:
            return ''

        return linked_unicode(self.get_parent())
Exemple #4
0
    def admin_link(self):
        """Return a link to the test admin page.

        Returns:
            str. link to the test admin page.
        """
        if self.id is None:
            return ""

        return linked_unicode(self)