Mercurial > p > roundup > code
comparison roundup/hyperdb.py @ 294:49be38bb6e9a
admin tool now complains if a "find" is attempted with a non-link property.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 16 Oct 2001 03:48:01 +0000 |
| parents | fb1b67a8fd98 |
| children | cb6d168b5aaa |
comparison
equal
deleted
inserted
replaced
| 293:956a9a86217b | 294:49be38bb6e9a |
|---|---|
| 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.25 2001-10-11 00:17:51 richard Exp $ | 18 # $Id: hyperdb.py,v 1.26 2001-10-16 03:48:01 richard Exp $ |
| 19 | 19 |
| 20 # standard python modules | 20 # standard python modules |
| 21 import cPickle, re, string | 21 import cPickle, re, string |
| 22 | 22 |
| 23 # roundup modules | 23 # roundup modules |
| 642 continue | 642 continue |
| 643 break | 643 break |
| 644 elif t == 2 and not v.search(node[k]): | 644 elif t == 2 and not v.search(node[k]): |
| 645 # RE search | 645 # RE search |
| 646 break | 646 break |
| 647 # elif t == 3 and node[k][:len(v)] != v: | |
| 648 # # start anchored | |
| 649 # break | |
| 650 # elif t == 4 and node[k][-len(v):] != v: | |
| 651 # # end anchored | |
| 652 # break | |
| 653 # elif t == 5 and node[k].find(v) == -1: | |
| 654 # # substring search | |
| 655 # break | |
| 656 elif t == 6 and node[k] != v: | 647 elif t == 6 and node[k] != v: |
| 657 # straight value comparison for the other types | 648 # straight value comparison for the other types |
| 658 break | 649 break |
| 659 else: | 650 else: |
| 660 l.append((nodeid, node)) | 651 l.append((nodeid, node)) |
| 847 cl.create(name=option[i], order=i) | 838 cl.create(name=option[i], order=i) |
| 848 return hyperdb.Link(name) | 839 return hyperdb.Link(name) |
| 849 | 840 |
| 850 # | 841 # |
| 851 # $Log: not supported by cvs2svn $ | 842 # $Log: not supported by cvs2svn $ |
| 843 # Revision 1.25 2001/10/11 00:17:51 richard | |
| 844 # Reverted a change in hyperdb so the default value for missing property | |
| 845 # values in a create() is None and not '' (the empty string.) This obviously | |
| 846 # breaks CSV import/export - the string 'None' will be created in an | |
| 847 # export/import operation. | |
| 848 # | |
| 852 # Revision 1.24 2001/10/10 03:54:57 richard | 849 # Revision 1.24 2001/10/10 03:54:57 richard |
| 853 # Added database importing and exporting through CSV files. | 850 # Added database importing and exporting through CSV files. |
| 854 # Uses the csv module from object-craft for exporting if it's available. | 851 # Uses the csv module from object-craft for exporting if it's available. |
| 855 # Requires the csv module for importing. | 852 # Requires the csv module for importing. |
| 856 # | 853 # |
