#1871: [with patch, needs work] wiki -- pressing control-c just starts another
copy running
--------------------------+-------------------------------------------------
 Reporter:  was           |       Owner:  was       
     Type:  defect        |      Status:  new       
 Priority:  major         |   Milestone:  sage-4.0.3
Component:  website/wiki  |    Keywords:            
 Reviewer:                |      Author:            
   Merged:                |  
--------------------------+-------------------------------------------------

Comment(by wdj):

 Using an intel macbook running 10.4, I cannot get both patches to apply,
 nor can I get only the 2nd patch to apply. The first patch fixes the
 problem (that once you start wiki() running, ctl-c kills the wiki server
 running on localhost:9000 but also starts it running on localhost:9001.)
 However, ctl-c also causes an error:

 {{{
 sage: wiki()
 **************************************************
 *                                                *
 * Open your web browser to http://localhost:9000 *
 *                                                *
 **************************************************
 2009-06-19 18:06:30-0400 [-] Log opened.
 2009-06-19 18:06:30-0400 [-] twistd 8.1.0
 (/Users/davidjoyner/sagefiles/sage-4.0.2.rc3/local/bin/python 2.5.4)
 starting up
 2009-06-19 18:06:30-0400 [-] reactor class: <class
 'twisted.internet.selectreactor.SelectReactor'>
 2009-06-19 18:06:30-0400 [-] MoinMoin.server.twistedmoin.MoinSite starting
 on 9000
 2009-06-19 18:06:30-0400 [-] Starting factory
 <MoinMoin.server.twistedmoin.MoinSite instance at 0x1632210>
 2009-06-19 18:06:30-0400 [-] set uid/gid 501/501
 2009-06-19 18:07:06-0400 [HTTPChannel,0,127.0.0.1]
 /Users/davidjoyner/sagefiles/sage-4.0.2.rc3/local/lib/python2.5/site-
 packages/MoinMoin/request.py:1485: exceptions.DeprecationWarning:
 IPv4Address.__getitem__ is deprecated.  Use attributes instead.
 2009-06-19 18:07:06-0400 [-] 127.0.0.1 - - [19/Jun/2009:22:07:05 +0000]
 "GET / HTTP/1.1" 404 7613 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X
 10_4_11; en) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0
 Safari/530.17"
 2009-06-19 18:07:06-0400 [HTTPChannel,0,127.0.0.1] 127.0.0.1 - -
 [19/Jun/2009:22:07:05 +0000] "GET /wiki/common/js/common.js HTTP/1.1" 200
 3892 "http://localhost:9000/"; "Mozilla/5.0 (Macintosh; U; Intel Mac OS X
 10_4_11; en) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0
 Safari/530.17"
 2009-06-19 18:07:06-0400 [HTTPChannel,0,127.0.0.1] 127.0.0.1 - -
 [19/Jun/2009:22:07:05 +0000] "GET /wiki/modern/css/common.css HTTP/1.1"
 200 7048 "http://localhost:9000/"; "Mozilla/5.0 (Macintosh; U; Intel Mac OS
 X 10_4_11; en) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0
 Safari/530.17"
 2009-06-19 18:07:06-0400 [HTTPChannel,0,127.0.0.1] 127.0.0.1 - -
 [19/Jun/2009:22:07:05 +0000] "GET /wiki/modern/css/screen.css HTTP/1.1"
 200 7558 "http://localhost:9000/"; "Mozilla/5.0 (Macintosh; U; Intel Mac OS
 X 10_4_11; en) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0
 Safari/530.17"
 2009-06-19 18:07:06-0400 [HTTPChannel,0,127.0.0.1] 127.0.0.1 - -
 [19/Jun/2009:22:07:05 +0000] "GET /wiki/modern/css/print.css HTTP/1.1" 200
 775 "http://localhost:9000/"; "Mozilla/5.0 (Macintosh; U; Intel Mac OS X
 10_4_11; en) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0
 Safari/530.17"
 2009-06-19 18:07:07-0400 [HTTPChannel,0,127.0.0.1] 127.0.0.1 - -
 [19/Jun/2009:22:07:06 +0000] "GET /wiki/modern/css/projection.css
 HTTP/1.1" 200 587 "http://localhost:9000/"; "Mozilla/5.0 (Macintosh; U;
 Intel Mac OS X 10_4_11; en) AppleWebKit/530.17 (KHTML, like Gecko)
 Version/4.0 Safari/530.17"
 2009-06-19 18:07:07-0400 [HTTPChannel,0,127.0.0.1] 127.0.0.1 - -
 [19/Jun/2009:22:07:06 +0000] "GET /wiki/common/moinmoin.png HTTP/1.1" 200
 6190 "http://localhost:9000/"; "Mozilla/5.0 (Macintosh; U; Intel Mac OS X
 10_4_11; en) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0
 Safari/530.17"
 2009-06-19 18:07:09-0400 [HTTPChannel,0,127.0.0.1] 127.0.0.1 - -
 [19/Jun/2009:22:07:08 +0000] "GET /favicon.ico HTTP/1.1" 200 1718
 "http://localhost:9000/"; "Mozilla/5.0 (Macintosh; U; Intel Mac OS X
 10_4_11; en) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0
 Safari/530.17"
 ^C2009-06-19 18:07:21-0400 [-] Received SIGINT, shutting down.
 2009-06-19 18:07:21-0400 [-] (Port 9000 Closed)
 2009-06-19 18:07:21-0400 [-] Stopping factory
 <MoinMoin.server.twistedmoin.MoinSite instance at 0x1632210>
 2009-06-19 18:07:21-0400 [-] Main loop terminated.
 2009-06-19 18:07:21-0400 [-] Server Shut Down.
 ---------------------------------------------------------------------------
 NameError                                 Traceback (most recent call
 last)

 
/Users/davidjoyner/.sage/temp/zeus.home/618/_Users_davidjoyner__sage_init_sage_0.py
 in <module>()

 /Users/davidjoyner/sagefiles/sage-4.0.2.rc3/local/lib/python2.5/site-
 packages/sage/server/wiki/moin.pyc in wiki(directory, port, address,
 threads)
      98             break
      99
 --> 100     os.chdir(original_path)
     101     return True
     102

 NameError: global name 'original_path' is not defined
 sage:
 }}}

 Is this the intended behavior?

 change "needs review" -> "needs work" since it seems that the second patch
 should apply and I suspect that Robert Miller did not intend this
 behavior.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/1871#comment:5>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to