mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-01-18 08:52:37 +00:00
[svn r8037] Commented out sqlite reference for use on other databases
This commit is contained in:
parent
9ee6f4668b
commit
1577624c28
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user