version 1.123, 2007/12/11 15:47:52
|
version 1.124, 2008/02/15 13:05:41
|
Line 357 class ZSQLExtendFolder(Folder,Persistent
|
Line 357 class ZSQLExtendFolder(Folder,Persistent
|
return ret |
return ret |
|
|
|
|
def importXMLFileFMP(self,table,dsn=None,uploadfile=None,update_fields=None,id_field=None,sync_mode=False, |
def importXMLFileFMP(self,tables,dsn=None,uploadfile=None,update_fields=None,id_field=None,sync_mode=False, |
lc_names=True,keep_fields=False,ascii_db=False,replace=False,backup=False, |
lc_names=True,keep_fields=False,ascii_db=False,replace=False,backup=False, |
debug=False,log_to_response=False, |
debug=False,log_to_response=False, |
redirect_url=None,RESPONSE=None): |
redirect_url=None,RESPONSE=None): |
Line 390 class ZSQLExtendFolder(Folder,Persistent
|
Line 390 class ZSQLExtendFolder(Folder,Persistent
|
if not dsn: |
if not dsn: |
dsn=self.getConnectionObj().connection_string |
dsn=self.getConnectionObj().connection_string |
|
|
|
tablelist=tables.split(',') |
|
logging.debug("tablelist: %s" %tablelist) |
|
#table=tables |
|
|
|
for table in tablelist : |
|
logging.debug("table: %s" %table) |
options=Options() |
options=Options() |
options.dsn=dsn |
options.dsn=dsn |
options.table=table |
options.table=table |
Line 420 class ZSQLExtendFolder(Folder,Persistent
|
Line 426 class ZSQLExtendFolder(Folder,Persistent
|
|
|
importFMPXML(options) |
importFMPXML(options) |
|
|
os.remove(filename) |
|
|
|
if RESPONSE and log_to_response: |
if RESPONSE and log_to_response: |
loghandler.flush() |
loghandler.flush() |
RESPONSE.write("\n\n DONE!") |
RESPONSE.write("\n\n DONE!") |
return |
|
|
|
if RESPONSE and redirect_url: |
elif RESPONSE and redirect_url: |
RESPONSE.redirect(redirect_url) |
RESPONSE.redirect(redirect_url) |
|
|
|
os.remove(filename) |
|
|
|
|
def generateIndex(self,field,index_name,table,RESPONSE=None): |
def generateIndex(self,field,index_name,table,RESPONSE=None): |
"""erzeuge ein Index Objekt einem Feld (experimental) |
"""erzeuge ein Index Objekt einem Feld (experimental) |