Re: External File addBatch question
Yes. I think the manage_addBatch should do it. We will probably set this up for ourselves pretty soon, and update the docs with an example. The syntax should be something like this folder.manage_addProduct['ExternalFile'].manage_addBatch( target_dir='c:\my\dir',basedir='',recursive='yes') See if that works. Of course, you could bundle that in a PythonScript and then call it via wget from the command line, something like this: wget http://myhost.com/myscript?dir=c:\my\dir I have not checked either of the above for syntax (sorry!) and then have cron call wget on regular intervals. This is a (very) poor man's auto filesystem-ZODB synchronization mechanism. When the time comes, this will be superceded by apelib and/or zope3 filesystem synch functionality. --Craeg
Hi,
I need to refresh my document repository build upon yours External File products via cron scheduled action to sincronize filesystem status with ZOPE ODB status.
I suppose to do it using a http request to a (external? python script) zope method that call yours manage_addBatch method.
But I need some help about python syntax to use.
May you help me?
TIA Giovanni Coi
participants (1)
-
Craeg Strong