#5675: notebook with address="" option should set the address to something
useful
----------------------+-----------------------------------------------------
Reporter: was | Owner: boothby
Type: defect | Status: new
Priority: major | Milestone: sage-3.4.1
Component: notebook | Keywords:
----------------------+-----------------------------------------------------
{{{
On Thu, 02 Apr 2009 at 11:53PM -0700, Ondrej Certik wrote:
>
> Hi,
>
[...]
> sage: notebook(secure=False, address="")
> [...]
>
> and it starts firefox on the local machine with this address:
>
> http://[www.:8000.com]/?startup_token=41e2a34e89e40139333a8113e9be2a50
>
> which obviously fails. This also happens with sage 3.2.3 (I didn't try
> other versions).
This has been around for a while; I haven't filed a ticket for it, since
I just retype the URL.
}}}
It used to be in the notebook that address="" was an error. Then when we
switched to twisted, it suddenly meant "listen on all interfaces". Now
it's a common option to give.
The two places I know of where the address is given are: (1) when popping
up a web browser pointed at the notebook, and (2) when publishing a
worksheet and it shows the URL where people can get the published version.
Ideas:
* If one gives address="", everywhere else, set the address to the
fully qualified domain name. How to get that in Python?
* If one gives address="", simply never automatically pop up a viewer,
and doesn't display the URL for published worksheets (since it is wrong).
If people want proper URL's they shouldn't be lazy with their address=
option.
* Make address="" an error, and require the user to give a proper fully
qualified name.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5675>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---