RE: [Zope] Versions and FTP access
-----Original Message----- From: Art Hampton [mailto:arth@pacsg.css.mot.com] Sent: Wednesday, January 05, 2000 6:28 PM To: Michel Pelletier Cc: zope@zope.org Subject: Re: [Zope] Versions and FTP access
How does versioning work with FTP access via ZServer? I have created a new version and it works very nicely, however, I can't get to my new version via ZServer--When I load a page in my editor via FTP, it's still the original version.
You cannot work in a version through FTP. There are no FTP semantics for entering or leaving or commiting or anything else like that. It's a protocol limitation.
That doesn't mean it can't be worked around by the Zope FTP server....
The FTP server could map: /zopever/myversionname to / in the "myversionname" version.
/zopever/myversionname/topdir would map to /topdir in myversionname
etc....
The CM tool we use (ClearCase) supports this kind of access scheme.
How would Zope know that you wanted to enter a version and that the FTP 'namespace' should be shifted to move the version to the root? The basic question then is how you 'enter' a version via FTP. Perhaps versions could be traversed through? I think this might introduce inconsitencies in logic dependant on absolute_url and the like.... -Michel
Michel Pelletier wrote:
The FTP server could map: /zopever/myversionname/topdir would map to /topdir in myversionname
How would Zope know that you wanted to enter a version and that the FTP 'namespace' should be shifted to move the version to the root? The basic question then is how you 'enter' a version via FTP. Perhaps versions could be traversed through? I think this might introduce inconsitencies in logic dependant on absolute_url and the like....
It very well might, I haven't yet messed with absolute_url, so I don't yet fully grok the implications of what you're asking. But essentially, in the example above, "zopever" is a keyword that indicates the next item in the path is a version name, and that we should move into that version space for processing the rest of the path. So if I had: http://mysite.com/zope/dir1/dir2 and in dir1 there was a version called "myver" that was active, to access the contents of dir2 via ftp, I would use: ftp://mysite.com/zope/dir1/zopever/myver/dir2 I hope I didn't just explain something you already understood. Again, if the root of your question is based around absolute_url, I can't offer any useful input. Although, from what I think absolute_url might be, it doesn't really apply during ftp...?
participants (2)
-
Art Hampton -
Michel Pelletier