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)
def setUp(self): self.finder = SeeAlsoFinder() self.mox = Mox() debian.services.RES_BASEURI = "base" debian.services.FROM_GRAPH = None