At last I finished the first version of the plugin. But 1 problem is
left: function upload is called twice.

In processed leo file I have a node '@data ftp', that contains the
following info:

[ main array
    [array of credentials],
    [file_1 to upload],
    [file_2 to upload],
    ...
    [file_n to upload]
]

array of credentials is an array of arrays, containing the servers, to
which I will upload the files:

[
    ['ftp.host1.ru', 'login1', 'pass1'],
    ['ftp.host2.ru', 'login2', 'pass2'],
    ...
    ['ftp.hostn.ru', 'loginn', 'passn'],
]

[file to upload]:

[
    "path to file on the local machine",
    "path to file on server",
    timestamp of last modification (optional)
]

If the time of last modification is missing - the file will be
uploaded at the last time set.

Example:
[[["ftp.host1.ru", "login1", "pass1"]], ["d:/www/dubai/cgi-bin/
file1.pl", "/dubai.host1.ru/cgi-bin/file1.pl", 1292457567.78125], ["d:/
www/dubai/cgi-bin/file2.pl", "/dubai.host1.ru/cgi-bin/file2.pl",
1292457567.78125]]

Ville or Edward, can you look at the code and tell me, what's wrong
with the function - why it's called twice? You can get the files at

http://live-wtr.ru/python.zip

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to