py::tests::qodb_search Namespace Reference


Functions

def search


Function Documentation

def py::tests::qodb_search::search (   keyword  ) 

00008                       :
00009         print "== %s" % keyword
00010         ml = qo.utils.build_matching_set(keyword)
00011         args = []
00012         for m in ml :
00013                 args.append(Q(matching__contains="%s"%m) | Q(series__matching__contains="%s"%m))
00014         for album in qodb.models.Album.objects.select_related().filter(*args) :
00015                 print "%s       %s      %s      %s" % (album.series.name, album.name, album.authors_str, album.drawers_str)
00016 
00017 
00018 search("Donj")
00019 search("Trond")
00020 search("lew sfar")
00021 
00022 


Generated on Tue Oct 9 20:40:33 2007 for Qomics by  doxygen 1.5.3