mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-22 15:21: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:
parent
a33700ca1e
commit
281e897a38
@ -4,7 +4,7 @@ import settings
|
|||||||
import expo.models as models
|
import expo.models as models
|
||||||
import csv
|
import csv
|
||||||
import time
|
import time
|
||||||
import sqlite3
|
# import sqlite3
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
|
|
||||||
@ -61,13 +61,13 @@ caveReader = csv.reader(cavetab)
|
|||||||
caveReader.next() # Strip out column headers
|
caveReader.next() # Strip out column headers
|
||||||
|
|
||||||
|
|
||||||
def save(x): #There seems to be an intermitent problem with sqlite and Vista, this should fix it
|
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:
|
# try:
|
||||||
x.save()
|
x.save()
|
||||||
except sqlite3.OperationalError:
|
# except sqlite3.OperationalError:
|
||||||
print "Error"
|
# print "Error"
|
||||||
time.sleep(1)
|
# time.sleep(1)
|
||||||
save(x)
|
# save(x)
|
||||||
|
|
||||||
def html_to_wiki(text):
|
def html_to_wiki(text):
|
||||||
if type(text) != str:
|
if type(text) != str:
|
||||||
|
Loading…
Reference in New Issue
Block a user