diff -ruN pymol.orig/modules/pymol/importing.py pymol/modules/pymol/importing.py --- pymol.orig/modules/pymol/importing.py 2014-01-15 00:02:55.000000000 +0400 +++ pymol/modules/pymol/importing.py 2014-02-14 10:19:11.275591741 +0400 @@ -473,7 +473,7 @@ def _processPWG(fname,_self=cmd): r = DEFAULT_ERROR try: - from web.pymolhttpd import PymolHttpd + from pymolweb.pymolhttpd import PymolHttpd browser_flag = 0 launch_flag = 0 report_url = None diff -ruN pymol.orig/modules/web/examples/content/SOP.html pymol/modules/web/examples/content/SOP.html --- pymol.orig/modules/web/examples/content/SOP.html 2014-01-15 00:02:58.000000000 +0400 +++ pymol/modules/web/examples/content/SOP.html 2014-02-14 10:19:11.275591741 +0400 @@ -49,7 +49,7 @@ The first seven sample applications are implemented like this, residing in folders at -$PYMOL_PATH/modules/web/examples/sample[0-7] There +$PYMOL_PATH/modules/pymolweb/examples/sample[0-7] There may be future PyMOL web applications delivered with new versions of PyMOL. Of course, you are free to write your own PyMOL web applications and store them on each user's machine, or perhaps on a diff -ruN pymol.orig/modules/web/examples/content/pwg.html pymol/modules/web/examples/content/pwg.html --- pymol.orig/modules/web/examples/content/pwg.html 2014-01-15 00:02:58.000000000 +0400 +++ pymol/modules/web/examples/content/pwg.html 2014-02-14 10:19:11.275591741 +0400 @@ -58,13 +58,13 @@

In contrast, the PWG file which launches the Sample 01 application is:

-root $PYMOL_PATH/modules/web/examples/sample01/htdocs
+root $PYMOL_PATH/modules/pymolweb/examples/sample01/htdocs
 browser
 

which tells PyMOL to (1) launch its internal web server on a dynamically assigned port with a root content directory of -$PYMOL_PATH/modules/web/examples/sample01/htdocs and (2) open +$PYMOL_PATH/modules/pymolweb/examples/sample01/htdocs and (2) open up a local browser window pointing at that server instance. The assumption in this scenario is that this newly-opened web page will be responsible for sending requests to the PyMOL server (and thus, will diff -ruN pymol.orig/modules/web/examples/content/running.html pymol/modules/web/examples/content/running.html --- pymol.orig/modules/web/examples/content/running.html 2014-01-15 00:02:58.000000000 +0400 +++ pymol/modules/web/examples/content/running.html 2014-02-14 10:19:11.278925074 +0400 @@ -36,7 +36,7 @@

The main index file with sample application links is located at

-
./modules/web/examples/index.html
+
./modules/pymolweb/examples/index.html

If you are reading this file from within a browser, then you may return to it now in order to try the sample @@ -55,7 +55,7 @@

# from within the PyMOL folder
 
-cd ./modules/web/examples
+cd ./modules/pymolweb/examples
 
 # then
 
diff -ruN pymol.orig/modules/web/examples/content/server.html pymol/modules/web/examples/content/server.html
--- pymol.orig/modules/web/examples/content/server.html	2014-01-15 00:02:58.000000000 +0400
+++ pymol/modules/web/examples/content/server.html	2014-02-14 10:19:11.278925074 +0400
@@ -18,7 +18,7 @@
 browser window).

The source code is located at -$PYMOL_PATH/modules/web/pymolhttpd.py, +$PYMOL_PATH/modules/pymolweb/pymolhttpd.py, and this file serves as a python module that can be imported by any python script running inside of PyMOL.

@@ -33,7 +33,7 @@

Alternatively, pymolhttpd.py can be used as the start-up script when you launch PyMOL.

-
pymol $PYMOL_PATH/modules/web/pymolhttpd.py
+
pymol $PYMOL_PATH/modules/pymolweb/pymolhttpd.py

This will cause PyMOL to start serving requests on the default port (8080, assuming of course that the port is not already claimed by @@ -44,7 +44,7 @@

The PyMOL web server module can be imported into and launched using code like this.

-from web import pymolhttpd
+from pymolweb import pymolhttpd
 httpd = pymolhttpd.PymolHttpd("htdocs", 8080)
 httpd.start()
 
diff -ruN pymol.orig/modules/web/examples/index.html pymol/modules/web/examples/index.html --- pymol.orig/modules/web/examples/index.html 2014-01-15 00:02:58.000000000 +0400 +++ pymol/modules/web/examples/index.html 2014-02-14 10:19:11.288925075 +0400 @@ -156,7 +156,7 @@ services interface!

The code for the applications above is located inside a series of folders located at: -

$PYMOL_PATH/modules/web/examples/sample*

+
$PYMOL_PATH/modules/pymolweb/examples/sample*

diff -ruN pymol.orig/modules/web/examples/sample01/htdocs/api.html pymol/modules/web/examples/sample01/htdocs/api.html --- pymol.orig/modules/web/examples/sample01/htdocs/api.html 2014-01-15 00:02:56.000000000 +0400 +++ pymol/modules/web/examples/sample01/htdocs/api.html 2014-02-14 10:19:11.288925075 +0400 @@ -9,9 +9,9 @@

Please click the link(s) below before testing methods in this section (in order).

/apply/pymol.cmd.reinitialize

Please click the link(s) below before testing methods in this section (in order).

/apply/pymol.cmd.reinitialize
-
/apply/pymol.cmd.load?filename=$PYMOL_PATH/modules/web/examples/data/ref.pdb
+
/apply/pymol.cmd.load?filename=$PYMOL_PATH/modules/pymolweb/examples/data/ref.pdb

Please click the link(s) below before testing methods in this section (in order).

/apply/pymol.cmd.reinitialize
-
/apply/pymol.cmd.load?filename=$PYMOL_PATH/modules/web/examples/data/ref.pdb
+
/apply/pymol.cmd.load?filename=$PYMOL_PATH/modules/pymolweb/examples/data/ref.pdb
-
/apply/pymol.cmd.load?filename=$PYMOL_PATH/modules/web/examples/data/map.ccp4
+
/apply/pymol.cmd.load?filename=$PYMOL_PATH/modules/pymolweb/examples/data/map.ccp4

Please click the link(s) below before testing methods in this section (in order).

/apply/pymol.cmd.reinitialize
-
/apply/pymol.cmd.load?filename=$PYMOL_PATH/modules/web/examples/data/ref.pdb
+
/apply/pymol.cmd.load?filename=$PYMOL_PATH/modules/pymolweb/examples/data/ref.pdb

Please click the link(s) below before testing methods in this section (in order).

/apply/pymol.cmd.reinitialize
-
/apply/pymol.cmd.load?filename=$PYMOL_PATH/modules/web/examples/data/ref.pdb
+
/apply/pymol.cmd.load?filename=$PYMOL_PATH/modules/pymolweb/examples/data/ref.pdb

Please click the link(s) below before testing methods in this section (in order).

/apply/pymol.cmd.reinitialize
-
/apply/pymol.cmd.load?filename=$PYMOL_PATH/modules/web/examples/data/ref.pdb
+
/apply/pymol.cmd.load?filename=$PYMOL_PATH/modules/pymolweb/examples/data/ref.pdb