Mercurial > p > roundup > code
comparison roundup/hyperdb.py @ 377:93dc08528ad9
roundup-admin now handles all hyperdb exceptions
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 09 Nov 2001 10:11:08 +0000 |
| parents | 62f899fb0c03 |
| children | a1331423eb93 |
comparison
equal
deleted
inserted
replaced
| 376:c6d6ea15068b | 377:93dc08528ad9 |
|---|---|
| 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.29 2001-10-27 00:17:41 richard Exp $ | 18 # $Id: hyperdb.py,v 1.30 2001-11-09 10:11:08 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 |
| 505 # check the prop is OK | 505 # check the prop is OK |
| 506 prop = self.properties[propname] | 506 prop = self.properties[propname] |
| 507 if not isinstance(prop, Link) and not isinstance(prop, Multilink): | 507 if not isinstance(prop, Link) and not isinstance(prop, Multilink): |
| 508 raise TypeError, "'%s' not a Link/Multilink property"%propname | 508 raise TypeError, "'%s' not a Link/Multilink property"%propname |
| 509 if not self.db.hasnode(prop.classname, nodeid): | 509 if not self.db.hasnode(prop.classname, nodeid): |
| 510 raise ValueError, '%s has no node %s'%(link_class, nodeid) | 510 raise ValueError, '%s has no node %s'%(prop.classname, nodeid) |
| 511 | 511 |
| 512 # ok, now do the find | 512 # ok, now do the find |
| 513 cldb = self.db.getclassdb(self.classname) | 513 cldb = self.db.getclassdb(self.classname) |
| 514 l = [] | 514 l = [] |
| 515 for id in self.db.getnodeids(self.classname, cldb): | 515 for id in self.db.getnodeids(self.classname, cldb): |
| 847 cl.create(name=option[i], order=i) | 847 cl.create(name=option[i], order=i) |
| 848 return hyperdb.Link(name) | 848 return hyperdb.Link(name) |
| 849 | 849 |
| 850 # | 850 # |
| 851 # $Log: not supported by cvs2svn $ | 851 # $Log: not supported by cvs2svn $ |
| 852 # Revision 1.29 2001/10/27 00:17:41 richard | |
| 853 # Made Class.stringFind() do caseless matching. | |
| 854 # | |
| 852 # Revision 1.28 2001/10/21 04:44:50 richard | 855 # Revision 1.28 2001/10/21 04:44:50 richard |
| 853 # bug #473124: UI inconsistency with Link fields. | 856 # bug #473124: UI inconsistency with Link fields. |
| 854 # This also prompted me to fix a fairly long-standing usability issue - | 857 # This also prompted me to fix a fairly long-standing usability issue - |
| 855 # that of being able to turn off certain filters. | 858 # that of being able to turn off certain filters. |
| 856 # | 859 # |
