2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 07:11:52 +00:00

[svn] Commented out sqlite reference for use on other databases

Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8037 by aaron @ 10/27/2008 12:01 AM
This commit is contained in:
substantialnoninfringinguser 2009-05-13 05:14:13 +01:00
parent a33700ca1e
commit 281e897a38

View File

@ -4,7 +4,7 @@ import settings
import expo.models as models
import csv
import time
import sqlite3
# import sqlite3
import re
import os
@ -61,13 +61,13 @@ caveReader = csv.reader(cavetab)
caveReader.next() # Strip out column headers
def save(x): #There seems to be an intermitent problem with sqlite and Vista, this should fix it
try:
def save(x): #There seems to be an intermitent problem with sqlite and Vista, uncomment the lines below, and the import sqlite3 statment above to fix it
# try:
x.save()
except sqlite3.OperationalError:
print "Error"
time.sleep(1)
save(x)
# except sqlite3.OperationalError:
# print "Error"
# time.sleep(1)
# save(x)
def html_to_wiki(text):
if type(text) != str: