Mercurial > p > roundup > code
comparison roundup/roundupdb.py @ 2077:3e0961d6d44d
Added the "actor" property.
Metakit backend not done (still not confident I know how it's supposed
to work ;)
Currently it will come up as NULL in the RDBMS backends for older items.
The *dbm backends will look up the journal. I hope to remedy the former
before 0.7's release.
Fixed a bunch of migration issues in the rdbms backends while I was at it
(index changes for key prop changes) and simplified the class table update
code for RDBMSes that have "alter table" in their command set (ie. not
sqlite) ... migration from "version 1" to "version 2" still hasn't
actually been tested yet though.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 15 Mar 2004 05:50:20 +0000 |
| parents | 261c2e6ceb1e |
| children | 93f03c6714d8 |
comparison
equal
deleted
inserted
replaced
| 2076:2a4309450202 | 2077:3e0961d6d44d |
|---|---|
| 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: roundupdb.py,v 1.100 2004-03-05 00:08:09 richard Exp $ | 18 # $Id: roundupdb.py,v 1.101 2004-03-15 05:50:19 richard Exp $ |
| 19 | 19 |
| 20 """Extending hyperdb with types specific to issue-tracking. | 20 """Extending hyperdb with types specific to issue-tracking. |
| 21 """ | 21 """ |
| 22 __docformat__ = 'restructuredtext' | 22 __docformat__ = 'restructuredtext' |
| 23 | 23 |
| 406 | 406 |
| 407 # determine what changed | 407 # determine what changed |
| 408 for key in oldvalues.keys(): | 408 for key in oldvalues.keys(): |
| 409 if key in ['files','messages']: | 409 if key in ['files','messages']: |
| 410 continue | 410 continue |
| 411 if key in ('activity', 'creator', 'creation'): | 411 if key in ('actor', 'activity', 'creator', 'creation'): |
| 412 continue | 412 continue |
| 413 # not all keys from oldvalues might be available in database | 413 # not all keys from oldvalues might be available in database |
| 414 # this happens when property was deleted | 414 # this happens when property was deleted |
| 415 try: | 415 try: |
| 416 new_value = cl.get(nodeid, key) | 416 new_value = cl.get(nodeid, key) |
