Changeset 625
- Timestamp:
- 04/06/06 02:10:42 (3 years ago)
- Files:
-
- wikirenamescript/0.9/RenamePage.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wikirenamescript/0.9/RenamePage.py
r624 r625 74 74 # Rewrite all links to the old page, such as to point to the new page 75 75 for row in cursor: 76 if debug: print "Found a page with a link in it: %s (v%s)" % (row[1],row[0]) 76 77 newtext = sre.sub('\[wiki:%s'%oldname,'[wiki:%s'%newname,row[2]) 77 78 cursor.execute('UPDATE wiki SET text=%s WHERE name=%s AND version=%s', (newtext,row[1],row[0]))
