Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'ok.': 0.04; 'defines': 0.07; 'inserts': 0.07; 'oh,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'setup.py': 0.09; 'skip:\\ 20': 0.09; '"python': 0.15; 'bieber': 0.16; 'declaimed': 0.16; 'email addr:ix.netcom.com': 0.16; 'email name:wlfraed': 0.16; 'from:addr:ix.netcom.com': 0.16; 'from:addr:wlfraed': 0.16; 'from:name:dennis lee bieber': 0.16; 'install"': 0.16; 'pyxml': 0.16; 'received:66.245': 0.16; 'received:dsl.mindspring.com': 0.16; 'received:mindspring.com': 0.16; 'received:wlfraed': 0.16; 'subject:server': 0.16; 'url:netcom': 0.16; 'url:wlfraed': 0.16; 'wulfraed': 0.16; 'looked': 0.16; 'wed,': 0.17; 'exists': 0.18; 'insert': 0.19; 'appears': 0.20; 'suggest': 0.20; 'url:home': 0.21; 'aug': 0.24; 'code': 0.25; 'guess': 0.26; 'string': 0.26; 'users.': 0.28; 'lee': 0.28; 'server': 0.29; 'table,': 0.29; 'version.': 0.29; 'script': 0.29; '+0200,': 0.30; 'at,': 0.30; 'invoke': 0.30; 'layers': 0.30; 'ran': 0.30; 'table.': 0.30; 'use?': 0.30; 'class': 0.30; 'used,': 0.32; 'there': 0.33; 'to:addr:python-list': 0.33; "i've": 0.34; 'creates': 0.34; 'things': 0.34; 'header:X-Complaints-To:1': 0.35; 'similar': 0.35; 'charset:us-ascii': 0.36; 'connection': 0.36; 'file': 0.36; 'created': 0.36; 'but': 0.37; 'two': 0.37; 'received:org': 0.38; 'configured': 0.38; 'subject:: ': 0.39; 'manually': 0.39; 'header :Mime-Version:1': 0.39; 'user': 0.39; 'to:addr:python.org': 0.39; 'called': 0.40; "i'd": 0.40; 'designed': 0.65; 'browsing': 0.77; 'dennis': 0.77; 'customized': 0.78; 'demo': 0.80; 'here...': 0.91; 'step,': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Installing WebDAV server Date: Wed, 31 Aug 2011 10:42:47 -0700 Organization: > Bestiaria Support Staff < References: <9c4trjFcfmU1@mid.individual.net> <9c6n4oFsnbU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: user-11fb6n6.dsl.mindspring.com X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 52 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1314812710 news.xs4all.nl 2428 [2001:888:2000:d::a6]:40948 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:12509 On Wed, 31 Aug 2011 14:18:00 +0200, "Fokke Nauta" declaimed the following in gmane.comp.python.general: > I ran "python setup.py install" in both the PyXML and PyWebDAV directories. > A lot of things happened and are added into those directories and I guess it > will be OK. > Next step, the startup-script "davserver". There is no script as such, also > not in \python27\tools\scripts. > I found 2 similar scripts: > 1. server.py in D:\Python27\WebDAV\PyWebDAV\DAVServer > 2. WebDAVServer.py in D:\Python27\WebDAV\PyWebDAV\DAV > > Which one is the one to use? > > I also configured config.ini in D:\Python27\WebDAV\PyWebDAV\DAVServer > > In this file it says: > "# Auth Database Table, Must exists in database prior to firstrun > dbtable=webDav > > # Create User Database Table and Insert system user" > > I created in MySQL a database called webDav. > I can create a table called User, but how many fields? > I'd suggest browsing the server code to find the MySQLdb calls and see what it requests... (mysqlqauth.py). Note that there are two layers involved here... The MySQL authorized user/password for the connection string TO the webDAV table, and then webDAV authorized user/passwords IN said table. Note that dbconn.py defines a class which included a method to create the table and a method to add users. Oh, and a "first_run" method which creates the table and inserts supplied user/password pair. I don't have time to search the code for if that is used, or if you'd have to manually invoke it somewhere. From the little I've looked at, while PywebDAV includes working servers -- they are really demo servers... The package appears to be designed for the user to develop their customized version. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/