示例#1
0
 def get_contactfolder_url(self):
     return get_contactfolder_url()
示例#2
0
 def get_url(self, view='view'):
     return '{}/{}/{}'.format(
         get_contactfolder_url(), self.wrapper_id, view)
示例#3
0
 def contactfolder_url(team_id):
     return get_contactfolder_url()
 def nextURL(self):
     return get_contactfolder_url()
示例#5
0
    def test_returns_url_of_the_contactfolder(self):
        contactfolder = create(Builder('contactfolder'))

        self.assertEquals(contactfolder.absolute_url(),
                          get_contactfolder_url())
示例#6
0
 def absolute_url(self):
     return '{}/team-{}/view'.format(
         get_contactfolder_url(), self.model.team_id)
示例#7
0
def linked_title_helper(item, value):
    """Helper for linking the value with the team details view.
    """
    url = '{}/team-{}/view'.format(get_contactfolder_url(), item.team_id)
    return u'<a href="{}">{}</a>'.format(url, value)
示例#8
0
 def get_profile_url(self):
     return '{}/team-{}/view'.format(get_contactfolder_url(),
                                     self.team.team_id)
示例#9
0
 def test_raises_exception_when_no_contactfolder_exists(self):
     with self.assertRaises(Exception):
         get_contactfolder_url()
示例#10
0
    def test_returns_url_of_the_contactfolder(self):
        contactfolder = create(Builder('contactfolder'))

        self.assertEquals(contactfolder.absolute_url(),
                          get_contactfolder_url())
示例#11
0
 def get_profile_url(self):
     return '{}/team-{}/view'.format(
         get_contactfolder_url(), self.team.team_id)
示例#12
0
 def contactfolder_url(team_id):
     return get_contactfolder_url()
示例#13
0
 def get_profile_url(self):
     return '{}/team-{}/view'.format(
         get_contactfolder_url(unrestricted=True), self.team.team_id)
示例#14
0
 def absolute_url(self):
     return '{}/team-{}/view'.format(get_contactfolder_url(),
                                     self.model.team_id)
示例#15
0
 def get_url(self, view='view'):
     return '{}/{}/{}'.format(
         get_contactfolder_url(), self.wrapper_id, view)
示例#16
0
 def get_contactfolder_url(self):
     return get_contactfolder_url()
示例#17
0
def linked_title_helper(item, value):
    """Helper for linking the value with the team details view.
    """
    url = '{}/team-{}/view'.format(get_contactfolder_url(), item.team_id)
    return u'<a href="{}">{}</a>'.format(url, value)
示例#18
0
 def nextURL(self):
     return get_contactfolder_url()
示例#19
0
 def test_raises_exception_when_no_contactfolder_exists(self):
     with self.assertRaises(Exception):
         get_contactfolder_url()