Mercurial > p > roundup > code
comparison roundup/hyperdb.py @ 628:923de4949369
Didn't accomodate new values for new properties
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 20 Feb 2002 05:23:24 +0000 |
| parents | 952679be9e2c |
| children | 07422fe57db2 |
comparison
equal
deleted
inserted
replaced
| 627:952679be9e2c | 628:923de4949369 |
|---|---|
| 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.56 2002-02-20 05:05:28 richard Exp $ | 18 # $Id: hyperdb.py,v 1.57 2002-02-20 05:23:24 richard Exp $ |
| 19 | 19 |
| 20 __doc__ = """ | 20 __doc__ = """ |
| 21 Hyperdatabase implementation, especially field types. | 21 Hyperdatabase implementation, especially field types. |
| 22 """ | 22 """ |
| 23 | 23 |
| 506 # the writeable properties. | 506 # the writeable properties. |
| 507 prop = self.properties[key] | 507 prop = self.properties[key] |
| 508 | 508 |
| 509 # if the value's the same as the existing value, no sense in | 509 # if the value's the same as the existing value, no sense in |
| 510 # doing anything | 510 # doing anything |
| 511 if value == node[key]: | 511 if node.has_key(key) and value == node[key]: |
| 512 del propvalues[key] | 512 del propvalues[key] |
| 513 continue | 513 continue |
| 514 | 514 |
| 515 # do stuff based on the prop type | 515 # do stuff based on the prop type |
| 516 if isinstance(prop, Link): | 516 if isinstance(prop, Link): |
| 1081 cl.create(name=option[i], order=i) | 1081 cl.create(name=option[i], order=i) |
| 1082 return hyperdb.Link(name) | 1082 return hyperdb.Link(name) |
| 1083 | 1083 |
| 1084 # | 1084 # |
| 1085 # $Log: not supported by cvs2svn $ | 1085 # $Log: not supported by cvs2svn $ |
| 1086 # Revision 1.56 2002/02/20 05:05:28 richard | |
| 1087 # . Added simple editing for classes that don't define a templated interface. | |
| 1088 # - access using the admin "class list" interface | |
| 1089 # - limited to admin-only | |
| 1090 # - requires the csv module from object-craft (url given if it's missing) | |
| 1091 # | |
| 1086 # Revision 1.55 2002/02/15 07:27:12 richard | 1092 # Revision 1.55 2002/02/15 07:27:12 richard |
| 1087 # Oops, precedences around the way w0rng. | 1093 # Oops, precedences around the way w0rng. |
| 1088 # | 1094 # |
| 1089 # Revision 1.54 2002/02/15 07:08:44 richard | 1095 # Revision 1.54 2002/02/15 07:08:44 richard |
| 1090 # . Alternate email addresses are now available for users. See the MIGRATION | 1096 # . Alternate email addresses are now available for users. See the MIGRATION |
