Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #12557
| From | "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Installing WebDAV server |
| Date | 2011-09-01 12:30 +0200 |
| Message-ID | <9c9578F5eaU1@mid.individual.net> (permalink) |
| References | <9c4trjFcfmU1@mid.individual.net><mailman.595.1314780791.27778.python-list@python.org><9c6n4oFsnbU1@mid.individual.net> <mailman.620.1314810894.27778.python-list@python.org> |
"Paul Kölle" <paul@subsignal.org> wrote in message news:mailman.620.1314810894.27778.python-list@python.org... > Hi, answers below... > > Am 31.08.2011 14:18, schrieb Fokke Nauta: >> "Paul Kölle"<paul@subsignal.org> wrote in message >> news:mailman.595.1314780791.27778.python-list@python.org... >>> Hi, >>> >>> Am 30.08.2011 22:00, schrieb Fokke Nauta: >>>> Hi all, >>>> >>>> I am completely new to Python, but I'm confronted with a problem I >>>> can't >>>> solve. >>> Welcome to python. >>> >>>> This is my question: >>> [snip] >>> >>>> I installed Python 3.2.1 and extracted the packages PyWebDAV and PyXML. >>>> Now >>>> I have a working Python app and 2 directories called PyWebDAV-0.9.4.1 >>>> and >>>> PyXML-0.8.4. In the PyWebDAV README it says: >>>> >>>> Installation and setup of server can be as easy as follows: >>>> >>>> $ easy_install PyWebDAV >>>> $ davserver -D /tmp -n -J >>>> >>>> But of course it doesn't work like that. When I start up Python GUI I >>>> see >>>> the ">>>" prompt instead of the "$" prompt. But where do I place the >>>> two >>>> directories? And there is no easy_install script in the PyXML-0.8.4 >>>> directory, only a setup.py and ez_setup.py script. I guess the latter >>>> is >>>> the >>>> one to use. But how? >>> You dont install from "Python GUI", use normal cmd, navigate to the >>> folder >>> you downloaded PyXML and PyWebDAV and run "python setup.py install" >>> (python.exe has to be in your PATH). Then you have to find the >>> startup-script "davserver". Find your python installation directory and >>> look into<Install dir>/Tools/Scripts, in my computer this is >>> E:\python27\Tools\Scripts. PyXML and PyWebDAV get installed in the >>> site-packages folder i.e. E:\python27\Lib/site-packages. You might have >>> to >>> look for "davserver" there... >>> >> >> Thanks, Paul. >> >> 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? > Your install locations look odd, but it might work nevertheless. The > server is in DAVServer\server.py, you can look at the file and you will > see: > > if __name__ == '__main__': > run() > > at the bottom. This is the "entry point" of a python script if called from > the command line. Yes, it was server.py. > My install looks a bit different but I can start the server as follows: > python.exe > E:\Python27\Lib\site-packages\pywebdav-0.9.4.1-py2.7.egg\DAVServer\server.py > -D c:\home -n > WARNING:pywebdav:Authentication disabled! > Listening on localhost (8008) I used server.py e:/wwwroot -m -c config.ini >> I also configured config.ini in D:\Python27\WebDAV\PyWebDAV\DAVServer > I would use a config file outside the program directory and use the -c > or --config switch, run server.py without arguments to see possible > startup options. > >> >> 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? > Don't know if that's documented somewhere but you can just look at the > code in mysqlauth.py in the same directory as server.py. Seems it needs > three columns, (User<string>,Pass<string>,can_write<0|1>) but I haven't > tried. > I have understood that the database will be configured with the first run, but in my case it didn't. In my congig.ini there was # Create User Database Table and Insert system user # Disable after the Table is created; for performance reasons firstrun=1 Fokke
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-08-30 22:00 +0200
Re: Installing WebDAV server Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-08-30 22:31 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-08-30 23:16 +0200
Re: Installing WebDAV server Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-08-31 02:00 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-08-31 11:27 +0200
Re: Installing WebDAV server Laszlo Nagy <gandalf@shopzeus.com> - 2011-08-31 13:48 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-08-31 14:35 +0200
Re: Installing WebDAV server Laszlo Nagy <gandalf@shopzeus.com> - 2011-08-31 15:36 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-08-31 16:37 +0200
Re: Installing WebDAV server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-08-31 10:42 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-02 14:04 +0200
Re: Installing WebDAV server Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-09-04 00:58 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-04 10:59 +0200
Re: Installing WebDAV server Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-09-04 20:35 +0200
Re: Installing WebDAV server Paul Kölle <paul@subsignal.org> - 2011-08-31 10:52 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-08-31 14:18 +0200
Re: Installing WebDAV server Paul Kölle <paul@subsignal.org> - 2011-08-31 19:14 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-01 12:30 +0200
Re: Installing WebDAV server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-08-31 10:42 -0700
Re: Installing WebDAV server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-08-31 21:29 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-01 12:30 +0200
Re: Installing WebDAV server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-09-01 22:19 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-02 14:19 +0200
Re: Installing WebDAV server becky_lewis <bex.lewis@gmail.com> - 2011-09-02 06:09 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-02 21:21 +0200
Re: Installing WebDAV server becky_lewis <bex.lewis@gmail.com> - 2011-09-05 02:01 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-05 16:51 +0200
Re: Installing WebDAV server becky_lewis <bex.lewis@gmail.com> - 2011-09-06 04:46 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-06 16:46 +0200
Re: Installing WebDAV server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-09-06 10:05 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-06 21:26 +0200
Re: Installing WebDAV server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-09-06 23:35 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-07 11:17 +0200
Re: Installing WebDAV server becky_lewis <bex.lewis@gmail.com> - 2011-09-07 03:31 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-07 15:52 +0200
Re: Installing WebDAV server Piet van Oostrum <piet@vanoostrum.org> - 2011-09-08 00:52 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-08 01:28 +0200
Re: Installing WebDAV server Piet van Oostrum <piet@vanoostrum.org> - 2011-09-08 13:01 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMiae.nl> - 2011-09-08 15:57 +0200
Re: Installing WebDAV server python@bdurham.com - 2011-09-02 09:11 -0400
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-02 21:24 +0200
Re: Installing WebDAV server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-09-02 10:15 -0700
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMsolfon.nl> - 2011-09-02 21:12 +0200
Re: Installing WebDAV server "Fokke Nauta" <fnautaNO@SPAMiae.nl> - 2011-09-08 16:10 +0200
csiph-web