Mercurial > p > roundup > code
diff roundup/backends/back_metakit.py @ 2093:3f6024ab2c7a
That's the last of the RDBMS migration steps done! Yay!
Note that the code currently has some unit testing issues:
- Metakit needs some attention in a couple of areas
- RDBMS backends are having trouble ordering their journal entries
correctly. I'm going to be migrating them to use TIMESTAMP for the date
column, but that's not necessarily going to fix things as mysql and
postgresql both appear to have second granularity. Sqlite will ignore
the data type as usual ;)
Next up is the datatype-ification of the RDBMS backends. Part of that will
involve the migration to numeric IDs, which will also be done in the *dbm
backends (already done in metakit). The ID exposed *above* the hyperdb
will be String, since so many things assume a string ID now.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 21 Mar 2004 23:39:08 +0000 |
| parents | 0e6db4462896 |
| children | 18addf2a8596 |
line wrap: on
line diff
--- a/roundup/backends/back_metakit.py Fri Mar 19 05:27:55 2004 +0000 +++ b/roundup/backends/back_metakit.py Sun Mar 21 23:39:08 2004 +0000 @@ -1,4 +1,4 @@ -# $Id: back_metakit.py,v 1.65 2004-03-19 05:27:55 richard Exp $ +# $Id: back_metakit.py,v 1.66 2004-03-21 23:39:08 richard Exp $ '''Metakit backend for Roundup, originally by Gordon McMillan. Known Current Bugs: @@ -1873,12 +1873,12 @@ ids[oldpos].ignore = 1 self.changed = 1 pos = ids.append(tblid=tblid,nodeid=nodeid,propid=propid) - + wordlist = re.findall(r'\b\w{2,25}\b', text.upper()) words = {} for word in wordlist: - if not self.disallows.has_key(word): - words[word] = 1 + if not self.disallows.has_key(word): + words[word] = 1 words = words.keys() index = self.db.view('index').ordered(1)
