1
0
mirror of https://github.com/djohnlewis/stackdump synced 2025-12-06 07:53:28 +00:00

Initial commit. Still building up the env and some parsing code.

This commit is contained in:
Samuel Lai
2011-09-11 14:29:39 +10:00
commit af2eafeccd
301 changed files with 82327 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/usr/bin/python2.5
import sys
try:
uri = sys.argv[1]
except IndexError:
sys.exit("Usage: %s old-style-URI" % sys.argv[0])
try:
import pkg_resources
pkg_resources.require('SQLObject>=1.0.0')
except (ImportError, pkg_resources.DistributionNotFound):
pass
from sqlobject import connectionForURI
conn = connectionForURI(uri, oldUri=True)
print conn.uri()