Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Fokke Nauta" Newsgroups: comp.lang.python Subject: Re: Installing WebDAV server Date: Tue, 6 Sep 2011 21:26:12 +0200 Lines: 100 Message-ID: <9cnaekF5nfU1@mid.individual.net> References: <9c9578F5eaU2@mid.individual.net><9cbvupFjr3U3@mid.individual.net><86b084e0-09a8-4997-9e0c-4526d7851e1d@s2g2000vby.googlegroups.com><9ccoqkF5efU1@mid.individual.net><9ck5upFlpnU1@mid.individual.net><9cmq1vFk6fU1@mid.individual.net> X-Trace: individual.net HlPJHBfbs+uPMdTphnljSgXIq+ti94cajyRghEUVjqHMvOG51d Cancel-Lock: sha1:GiO9nUKYCkfamdsGjJBe1AOMwBA= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:12847 "Dennis Lee Bieber" wrote in message news:mailman.809.1315328739.27778.python-list@python.org... > On Tue, 6 Sep 2011 16:46:17 +0200, "Fokke Nauta" > declaimed the following in > gmane.comp.python.general: > > >> ------------------------------------------- >> Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] >> on >> win32 >> Type "copyright", "credits" or "license()" for more information. >> >>> import os.path >> >>> os.path.isdir(path_name) >> >> Traceback (most recent call last): >> File "", line 1, in >> os.path.isdir(path_name) >> NameError: name 'path_name' is not defined >> >>> >> ------------------------------------------- >> > "path_name" is a placeholder -- you're supposed to put in the exact > string(s) you have been trying in the configuration file (wrap the > string in quotes). > >>>> import os.path >>>> os.path.isdir("e:\webdav") > False >>>> os.mkdir("e:\webdav") >>>> os.path.isdir("e:\webdav") > True >>>> os.path.isdir("e:\webdav\\") > Traceback ( File "", line 1 > os.path.isdir("e:\webdav\") > ^ > SyntaxError: EOL while scanning single-quoted string >>>> os.path.isdir("e:\webdav\\") > True >>>> os.path.isdir("e:\webdav/") > True >>>> os.path.isdir("e:/webdav/") > True >>>> os.path.isdir("e:/webdav") > True >>>> os.rmdir("e:/webdav") >>>> os.path.isdir("e:\webdav") > False >>>> > > Note that Python itself (and the C-runtime) doesn't care if the > separator is \ or / or even mixed; it is just the Windows command line > that uses \ for separator and / for options. (Python, however, uses \ as > an escape and \" is treated first, hence the need for \\" to escape the > \ itself) Thanks, this is clear. This is my Python shell: Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> import os.path >>> os.path.isdir("d:\webdav") True >>> So Python recognizes the directory d:\webdav This is the command shell: D:\Python27\WebDAV\PyWebDAV\DAVServer>server.py -n -c config.ini INFO:pywebdav:Starting up PyWebDAV server INFO:pywebdav:chunked_http_response feature ON INFO:pywebdav:http_request_use_iterator feature OFF INFO:pywebdav :http_response_use_iterator feature OFF INFO:fshandler:Initialized with D:/Webdav-http://10.0.0.140:8081/ WARNING:pywebdav:Authentication disabled! INFO:pywebdav:Serving data from D:/Webdav Listening on 10.0.0.140 <8081> (here I try to login the WebDAV server with the local IE browser) INFO:fshandler :get_data: D:\Webdav not found server - - [06/Sep/2011 21:05:35] - Mozilla/4.0 (compatible; MSIE 8.0; Windows N T 5.1; Trident/4.0> - "GET / HTTP/1.1" 404 - server - - [06/Sep/2011 21:05:35] - Mozilla/4.0 (compatible; MSIE 8.0; Windows N T 5.1; Trident/4.0> - "GET / HTTP/1.1" 404 - So - I'm a bit lost now. Thinking seriously that my webdav installation is at fault. Fokke