version 1.128, 2008/08/07 14:04:31
|
version 1.130, 2009/09/23 12:30:50
|
Line 423 class ZSQLExtendFolder(Folder,Persistent
|
Line 423 class ZSQLExtendFolder(Folder,Persistent
|
# set up logging to response as plain text |
# set up logging to response as plain text |
RESPONSE.setHeader("Content-Type","text/plain; charset=utf-8") |
RESPONSE.setHeader("Content-Type","text/plain; charset=utf-8") |
RESPONSE.write("Import FMPXML file...\n\n") |
RESPONSE.write("Import FMPXML file...\n\n") |
|
RESPONSE.flush() |
loghandler = logging.StreamHandler(RESPONSE) |
loghandler = logging.StreamHandler(RESPONSE) |
if debug: |
if debug: |
loghandler.setLevel(logging.DEBUG) |
loghandler.setLevel(logging.DEBUG) |
Line 1136 class ZSQLExtendFolder(Folder,Persistent
|
Line 1137 class ZSQLExtendFolder(Folder,Persistent
|
table=urllib.unquote(value) |
table=urllib.unquote(value) |
elif name=="-identify": |
elif name=="-identify": |
identify=urllib.unquote(value) |
identify=urllib.unquote(value) |
identify="lower("+identify.split("=")[0]+")="+sql_quote(identify.split("=")[1].lower()) |
# old code did identify with lower() which doesn't work for oids |
|
#identify="lower("+identify.split("=")[0]+")="+sql_quote(identify.split("=")[1].lower()) |
elif name=="-format": |
elif name=="-format": |
format=urllib.unquote(value) |
format=urllib.unquote(value) |
#elif (not (name[0]=="-" or name[0]=="_")) and (not len(value)==0): |
#elif (not (name[0]=="-" or name[0]=="_")) and (not len(value)==0): |