I have a script I'm using for configuration which uses Client.py. It moves a file to the import directory, uses Client to perform the import, then uses Client to invoke a python script to select portions of the imported object and move them from the imported object to other places in the system. The script then deletes the imported object (and repeats the process agein with another file). The delete does not happen when run through the web--and it fails silently. I see the problem as a duplication of id's when I try to import the next file (which has the same name) and it fails on a duplicate id. Any thoughts as to what's happening and how to work around it?
Dennis Allison wrote at 2004-1-4 09:37 -0800:
... The delete does not happen when run through the web--and it fails silently. I see the problem as a duplication of id's when I try to import the next file (which has the same name) and it fails on a duplicate id.
Any thoughts as to what's happening and how to work around it?
Activate Zope logging (--> "doc/LOGGING.txt") and look into the log file. "manage_beforeDelete" ignores most exceptions (after it has logged them). Maybe, you find some hints in the log file. However, the object is nevertheless deleted. Thus, it is probably not your problem... -- Dieter
participants (2)
-
Dennis Allison -
Dieter Maurer