root/bin/fixbrokenurls.py

Revision 47, 235 bytes (checked in by Jonathan Jacobs <korpse@…>, 2 years ago)

Initial web interface implementation.
This includes a number of substantial changes to the rest of the codebase.

Line 
1import sys
2
3from axiom.store import Store
4
5from eridanus.entry import Entry, saneURL
6
7
8db = Store(sys.argv[1])
9
10for e in db.query(Entry):
11    o = e.url
12    n = saneURL(e.url)
13    print repr(o), '=>', repr(n)
14    e.url = saneURL(e.url)
Note: See TracBrowser for help on using the browser.