Esempio n. 1
0
def seealso(request, source):
    if request.method == 'GET':
        finder = SeeAlsoFinder()
        try:
            uris = finder.find(source)
        except (SPARQLQueryProcessorError, SPARQLQueryBuilderError), e:
            return render_to_response('debian/error.html', {'reason': e})

        replydata = {'source': source, 'uris': uris}
        return render_to_response('debian/seealso.html', replydata)
Esempio n. 2
0
 def setUp(self):
     self.finder = SeeAlsoFinder()
     self.mox = Mox()
     debian.services.RES_BASEURI = "base"
     debian.services.FROM_GRAPH = None