comparison roundup/hyperdb.py @ 693:250d0d517f64 search_indexing-0-4-2-branch

We now have a separate search page for nodes. Search links for different classes can be customized in instance_config similar to index links.
author Roche Compaan <rochecompaan@users.sourceforge.net>
date Sat, 20 Apr 2002 13:23:34 +0000
parents 0521ddc7bb31
children 54333751e98d
comparison
equal deleted inserted replaced
692:0521ddc7bb31 693:250d0d517f64
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: hyperdb.py,v 1.59.2.1 2002-04-19 19:54:42 rochecompaan Exp $ 18 # $Id: hyperdb.py,v 1.59.2.2 2002-04-20 13:23:33 rochecompaan Exp $
19 19
20 __doc__ = """ 20 __doc__ = """
21 Hyperdatabase implementation, especially field types. 21 Hyperdatabase implementation, especially field types.
22 """ 22 """
23 23
886 else: 886 else:
887 l.append((nodeid, node)) 887 l.append((nodeid, node))
888 l.sort() 888 l.sort()
889 889
890 # filter based on full text search 890 # filter based on full text search
891 if search_matches: 891 if search_matches is not None:
892 k = [] 892 k = []
893 l_debug = []
893 for v in l: 894 for v in l:
895 l_debug.append(v[0])
894 if search_matches.has_key(v[0]): 896 if search_matches.has_key(v[0]):
895 k.append(v) 897 k.append(v)
896 l = k 898 l = k
897 899
898 # optimise sort 900 # optimise sort
1104 cl.create(name=options[i], order=i) 1106 cl.create(name=options[i], order=i)
1105 return hyperdb.Link(name) 1107 return hyperdb.Link(name)
1106 1108
1107 # 1109 #
1108 # $Log: not supported by cvs2svn $ 1110 # $Log: not supported by cvs2svn $
1111 # Revision 1.59.2.1 2002/04/19 19:54:42 rochecompaan
1112 # cgi_client.py
1113 # removed search link for the time being
1114 # moved rendering of matches to htmltemplate
1115 # hyperdb.py
1116 # filtering of nodes on full text search incorporated in filter method
1117 # roundupdb.py
1118 # added paramater to call of filter method
1119 # roundup_indexer.py
1120 # added search method to RoundupIndexer class
1121 #
1109 # Revision 1.59 2002/03/12 22:52:26 richard 1122 # Revision 1.59 2002/03/12 22:52:26 richard
1110 # more pychecker warnings removed 1123 # more pychecker warnings removed
1111 # 1124 #
1112 # Revision 1.58 2002/02/27 03:23:16 richard 1125 # Revision 1.58 2002/02/27 03:23:16 richard
1113 # Ran it through pychecker, made fixes 1126 # Ran it through pychecker, made fixes

Roundup Issue Tracker: http://roundup-tracker.org/