Re: [Zope] WebDav-support / Index_html versus index.html
Pieter Biemond writes:
... access Zope via WebDAV from MS products .... Can anybody answer the following questions: * Has anybody implemented something like this before? Any pittfals I should watch out for? Search the searchable list archiv. You will find some article about this issue.
* Why is the default file index_html and not index.html (Windows doesn't want to open files without extensions). I assume, because preferences of Python, Zope's implementation language, have had a higher priority than Windows preferences ;-) Python does not like periods in names.
* Should I install 2.2.2. now, or are there any WebDav-updates in 2.2.4? I do not think, the two version will differ in WebDAV support (though someone is working on locking through WebDAV). However, if I would start a new project, I would go for 2.2.4 (I expect less bugs than 2.2.2).
* Is it possible to backup all files from Zope easily? (for example use a command-line webdav-client to pull everything out of the Zope database). I would like to have all the files backed up on a regular filesystem, rather than a proprietary database. You can do that.
But you will lose information. Objects in Zope not only have content, but properties, security attributes, ownership, modification times .... All these will not be extractable by WebDAV. I would go for the backup of the complete proprietary database. At least as the primary backup. As an additional safety belt, I might think about backing up the content independently. Dieter
Dieter Maurer wrote:
Pieter Biemond writes:
* Why is the default file index_html and not index.html (Windows doesn't want to open files without extensions). I assume, because preferences of Python, Zope's implementation language, have had a higher priority than Windows preferences ;-) Python does not like periods in names.
That's not really true, python doesn't seem to care a lot about what's in a name. If you have periods, it just means you need things like: getattr(getattr(getattr(globals(),'x.y'), 'z.a'), 'index.html') as opposed to: x_y.z_a.index_html I think there's a strong case for index.html, especially since search engines and lots of HTTP authoring tools (eg DreamWeaver) like/need those periods to work properly. We actually use index.html quite a lot, with a dtml method as index_html which solves the problems: <dtml-var index.html> neat, huh? ;-) cheers, Chris
Chris Withers writes:
Dieter Maurer wrote:
Pieter Biemond writes:
* Why is the default file index_html and not index.html (Windows doesn't want to open files without extensions). I assume, because preferences of Python, Zope's implementation language, have had a higher priority than Windows preferences ;-) Python does not like periods in names.
That's not really true, python doesn't seem to care a lot about what's in a name. A name is a well defined lexical entity in Python: a sequence of letters, '_' and digits, starting with a letter or '_'.
If you have periods, it just means you need things like:
getattr(getattr(getattr(globals(),'x.y'), 'z.a'), 'index.html') What you want to say:
attributes can be referenced with more general entities than names, e.g. arbitrary strings. But: Try to define a method(!) "index.html" in a class. I know, it is possible. But it is not natural. Dieter
participants (2)
-
Chris Withers -
Dieter Maurer