Tim,
There are more details to fix up than I thought but here is a version that you can experiment with.
File in the attached cs and then evaluate something like:
d _ DAVServerDirectory on: 'http://squeakland.org/projects'. d altUrl: 'http://squeakland.org.org/projects'. d moniker: 'Squeakland Repsository'. d user: 'abc'. d password: 'def'. d acceptsUploads: true.
ServerDirectory inImageServers at: 'Squeakland Repository' put: d.
(replace strings with appropriate values)
and then it should show the server in the saving dialog.
Right now, as you suggested, the author field of the project info is used as the username for DAV accesses.
Whether the one should be automatically selected by default upon launching the saving dialog (if the username and password can be changed, automatically selecting may not what you want), and some other stuff like the "SAVE" button should be grayed out or not are other questions...
-- Yoshiki
Tim and everybody,
Here is a new version of WebDAV support. For those who were missing the discussion on IRC, the idea is to have a sharable place and also user specific places on the server and the user can upload project.
File in the attached change set into a vanilla (important) etoys-dev image and evaluate:
Utilities authorName: nil.
d _ DAVMultiUserServerDirectory on: 'http://showcase.squeakland.org/webdav'. d altUrl: 'http://squeakland.org/webdav'. d moniker: 'My Squeakland Showcase'. d acceptsUploads: true. d setupSelector: #setupPersonalDirectory:. ServerDirectory inImageServers at: 'My Squeakland Showcase' put: d.
d _ DAVMultiUserServerDirectory on: 'http://squeakland.org/webdav'. d altUrl: 'http://squeakland.org/webdav'. d moniker: 'Squeakland Showcase'. d user: 'etoys'. d password: ... "the one you gave me" d useDefaultAccount: true. d acceptsUploads: true. ServerDirectory inImageServers at: 'Squeakland Showcase' put: d.
Right now (perhaps rightly), trying to access the directory ends up with "403 Forbidden" errors. But if you fix the server to accept the upload again, we can make progress.
-- Yoshiki
etoys-dev@lists.squeakfoundation.org